@prmichaelsen/remember-mcp 3.0.0 → 3.12.0

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 (208) hide show
  1. package/AGENT.md +296 -250
  2. package/CHANGELOG.md +338 -0
  3. package/README.md +68 -45
  4. package/agent/commands/acp.clarification-create.md +382 -0
  5. package/agent/commands/acp.project-info.md +309 -0
  6. package/agent/commands/acp.project-remove.md +379 -0
  7. package/agent/commands/acp.project-update.md +296 -0
  8. package/agent/commands/acp.task-create.md +17 -9
  9. package/agent/commands/git.commit.md +13 -1
  10. package/agent/design/comment-memory-type.md +2 -2
  11. package/agent/design/local.collaborative-memory-sync.md +265 -0
  12. package/agent/design/local.content-flags.md +210 -0
  13. package/agent/design/local.ghost-persona-system.md +273 -0
  14. package/agent/design/local.group-acl-integration.md +338 -0
  15. package/agent/design/local.memory-acl-schema.md +352 -0
  16. package/agent/design/local.memory-collection-pattern-v2.md +348 -0
  17. package/agent/design/local.moderation-and-space-config.md +257 -0
  18. package/agent/design/local.v2-api-reference.md +621 -0
  19. package/agent/design/local.v2-migration-guide.md +191 -0
  20. package/agent/design/local.v2-usage-examples.md +265 -0
  21. package/agent/design/permissions-storage-architecture.md +11 -3
  22. package/agent/design/trust-escalation-prevention.md +9 -2
  23. package/agent/design/trust-system-implementation.md +12 -3
  24. package/agent/milestones/milestone-14-memory-collection-v2.md +182 -0
  25. package/agent/milestones/milestone-15-moderation-space-config.md +126 -0
  26. package/agent/progress.yaml +628 -49
  27. package/agent/scripts/acp.common.sh +2 -0
  28. package/agent/scripts/acp.install.sh +11 -1
  29. package/agent/scripts/acp.package-install-optimized.sh +454 -0
  30. package/agent/scripts/acp.package-install.sh +247 -300
  31. package/agent/scripts/acp.project-info.sh +218 -0
  32. package/agent/scripts/acp.project-remove.sh +302 -0
  33. package/agent/scripts/acp.project-update.sh +296 -0
  34. package/agent/scripts/acp.yaml-parser.sh +128 -10
  35. package/agent/tasks/milestone-14-memory-collection-v2/task-165-core-infrastructure-setup.md +171 -0
  36. package/agent/tasks/milestone-14-memory-collection-v2/task-166-update-remember-publish.md +191 -0
  37. package/agent/tasks/milestone-14-memory-collection-v2/task-167-update-remember-retract.md +186 -0
  38. package/agent/tasks/milestone-14-memory-collection-v2/task-168-implement-remember-revise.md +184 -0
  39. package/agent/tasks/milestone-14-memory-collection-v2/task-169-update-remember-search-space.md +179 -0
  40. package/agent/tasks/milestone-14-memory-collection-v2/task-170-update-remember-create-update.md +139 -0
  41. package/agent/tasks/milestone-14-memory-collection-v2/task-172-performance-testing-optimization.md +161 -0
  42. package/agent/tasks/milestone-14-memory-collection-v2/task-173-documentation-examples.md +258 -0
  43. package/agent/tasks/milestone-15-moderation-space-config/task-174-add-moderation-schema-fields.md +57 -0
  44. package/agent/tasks/milestone-15-moderation-space-config/task-175-create-space-config-service.md +64 -0
  45. package/agent/tasks/milestone-15-moderation-space-config/task-176-wire-moderation-publish-flow.md +45 -0
  46. package/agent/tasks/milestone-15-moderation-space-config/task-177-add-moderation-search-filters.md +70 -0
  47. package/agent/tasks/milestone-15-moderation-space-config/task-178-create-remember-moderate-tool.md +69 -0
  48. package/agent/tasks/milestone-15-moderation-space-config/task-179-documentation-integration-tests.md +58 -0
  49. package/agent/tasks/milestone-16-ghost-system/task-187-ghost-config-firestore.md +41 -0
  50. package/agent/tasks/milestone-16-ghost-system/task-188-trust-filter-integration.md +44 -0
  51. package/agent/tasks/milestone-16-ghost-system/task-189-ghost-memory-filtering.md +43 -0
  52. package/agent/tasks/milestone-16-ghost-system/task-190-ghost-config-tools.md +45 -0
  53. package/agent/tasks/milestone-16-ghost-system/task-191-escalation-firestore.md +38 -0
  54. package/agent/tasks/milestone-16-ghost-system/task-192-documentation-verification.md +39 -0
  55. package/agent/tasks/milestone-7-trust-permissions/task-180-access-result-permission-types.md +69 -0
  56. package/agent/tasks/milestone-7-trust-permissions/task-181-firestore-permissions-access-logs.md +56 -0
  57. package/agent/tasks/milestone-7-trust-permissions/task-182-trust-enforcement-service.md +68 -0
  58. package/agent/tasks/milestone-7-trust-permissions/task-183-access-control-service.md +70 -0
  59. package/agent/tasks/milestone-7-trust-permissions/task-184-permission-tools.md +79 -0
  60. package/agent/tasks/milestone-7-trust-permissions/task-185-wire-trust-into-search-query.md +55 -0
  61. package/agent/tasks/milestone-7-trust-permissions/task-186-documentation-verification.md +56 -0
  62. package/agent/tasks/task-76-fix-indexnullstate-schema-bug.md +197 -0
  63. package/dist/collections/composite-ids.d.ts +106 -0
  64. package/dist/collections/core-infrastructure.spec.d.ts +11 -0
  65. package/dist/collections/dot-notation.d.ts +106 -0
  66. package/dist/collections/tracking-arrays.d.ts +176 -0
  67. package/dist/constants/content-types.d.ts +1 -0
  68. package/dist/schema/v2-collections-comments.spec.d.ts +8 -0
  69. package/dist/schema/v2-collections.d.ts +210 -0
  70. package/dist/server-factory.d.ts +15 -0
  71. package/dist/server-factory.js +2798 -1029
  72. package/dist/server.js +2526 -1012
  73. package/dist/services/access-control.d.ts +103 -0
  74. package/dist/services/access-control.spec.d.ts +2 -0
  75. package/dist/services/credentials-provider.d.ts +24 -0
  76. package/dist/services/credentials-provider.spec.d.ts +2 -0
  77. package/dist/services/escalation.service.d.ts +22 -0
  78. package/dist/services/escalation.service.spec.d.ts +2 -0
  79. package/dist/services/ghost-config.service.d.ts +55 -0
  80. package/dist/services/ghost-config.service.spec.d.ts +2 -0
  81. package/dist/services/space-config.service.d.ts +23 -0
  82. package/dist/services/space-config.service.spec.d.ts +2 -0
  83. package/dist/services/trust-enforcement.d.ts +83 -0
  84. package/dist/services/trust-enforcement.spec.d.ts +2 -0
  85. package/dist/services/trust-validator.d.ts +43 -0
  86. package/dist/services/trust-validator.spec.d.ts +2 -0
  87. package/dist/tools/confirm-publish-moderation.spec.d.ts +8 -0
  88. package/dist/tools/confirm.d.ts +8 -1
  89. package/dist/tools/create-memory.d.ts +2 -1
  90. package/dist/tools/create-memory.spec.d.ts +10 -0
  91. package/dist/tools/create-relationship.d.ts +2 -1
  92. package/dist/tools/delete-memory.d.ts +2 -1
  93. package/dist/tools/delete-relationship.d.ts +2 -1
  94. package/dist/tools/deny.d.ts +2 -1
  95. package/dist/tools/find-similar.d.ts +2 -1
  96. package/dist/tools/get-preferences.d.ts +2 -1
  97. package/dist/tools/ghost-config.d.ts +27 -0
  98. package/dist/tools/ghost-config.spec.d.ts +2 -0
  99. package/dist/tools/moderate.d.ts +20 -0
  100. package/dist/tools/moderate.spec.d.ts +5 -0
  101. package/dist/tools/publish.d.ts +11 -3
  102. package/dist/tools/query-memory.d.ts +3 -1
  103. package/dist/tools/query-space.d.ts +4 -1
  104. package/dist/tools/retract.d.ts +29 -0
  105. package/dist/tools/revise.d.ts +45 -0
  106. package/dist/tools/revise.spec.d.ts +8 -0
  107. package/dist/tools/search-memory.d.ts +2 -1
  108. package/dist/tools/search-relationship.d.ts +2 -1
  109. package/dist/tools/search-space.d.ts +25 -5
  110. package/dist/tools/search-space.spec.d.ts +9 -0
  111. package/dist/tools/set-preference.d.ts +2 -1
  112. package/dist/tools/update-memory.d.ts +2 -1
  113. package/dist/tools/update-relationship.d.ts +2 -1
  114. package/dist/types/access-result.d.ts +48 -0
  115. package/dist/types/access-result.spec.d.ts +2 -0
  116. package/dist/types/auth.d.ts +46 -0
  117. package/dist/types/ghost-config.d.ts +36 -0
  118. package/dist/types/memory.d.ts +3 -1
  119. package/dist/types/preferences.d.ts +1 -1
  120. package/dist/utils/auth-helpers.d.ts +14 -0
  121. package/dist/utils/auth-helpers.spec.d.ts +2 -0
  122. package/dist/utils/test-data-generator.d.ts +124 -0
  123. package/dist/utils/test-data-generator.spec.d.ts +12 -0
  124. package/dist/v2-performance.e2e.d.ts +17 -0
  125. package/dist/v2-smoke.e2e.d.ts +14 -0
  126. package/dist/weaviate/client.d.ts +5 -8
  127. package/dist/weaviate/space-schema.d.ts +2 -2
  128. package/docs/performance/v2-benchmarks.md +80 -0
  129. package/jest.e2e.config.js +14 -3
  130. package/package.json +1 -1
  131. package/scripts/.collection-recreation-state.yaml +16 -0
  132. package/scripts/.gitkeep +5 -0
  133. package/scripts/README-collection-recreation.md +224 -0
  134. package/scripts/README.md +51 -0
  135. package/scripts/backup-collections.ts +543 -0
  136. package/scripts/delete-collection.ts +137 -0
  137. package/scripts/migrate-recreate-collections.ts +578 -0
  138. package/scripts/migrate-v1-to-v2.ts +1094 -0
  139. package/scripts/package-lock.json +1113 -0
  140. package/scripts/package.json +27 -0
  141. package/src/collections/composite-ids.ts +193 -0
  142. package/src/collections/core-infrastructure.spec.ts +353 -0
  143. package/src/collections/dot-notation.ts +212 -0
  144. package/src/collections/tracking-arrays.ts +298 -0
  145. package/src/constants/content-types.ts +20 -0
  146. package/src/schema/v2-collections-comments.spec.ts +141 -0
  147. package/src/schema/v2-collections.ts +433 -0
  148. package/src/server-factory.ts +89 -20
  149. package/src/server.ts +45 -17
  150. package/src/services/access-control.spec.ts +383 -0
  151. package/src/services/access-control.ts +291 -0
  152. package/src/services/credentials-provider.spec.ts +22 -0
  153. package/src/services/credentials-provider.ts +34 -0
  154. package/src/services/escalation.service.spec.ts +183 -0
  155. package/src/services/escalation.service.ts +150 -0
  156. package/src/services/ghost-config.service.spec.ts +339 -0
  157. package/src/services/ghost-config.service.ts +219 -0
  158. package/src/services/space-config.service.spec.ts +102 -0
  159. package/src/services/space-config.service.ts +79 -0
  160. package/src/services/trust-enforcement.spec.ts +309 -0
  161. package/src/services/trust-enforcement.ts +197 -0
  162. package/src/services/trust-validator.spec.ts +108 -0
  163. package/src/services/trust-validator.ts +105 -0
  164. package/src/tools/confirm-publish-moderation.spec.ts +240 -0
  165. package/src/tools/confirm.ts +869 -135
  166. package/src/tools/create-memory.spec.ts +126 -0
  167. package/src/tools/create-memory.ts +20 -27
  168. package/src/tools/create-relationship.ts +17 -8
  169. package/src/tools/delete-memory.ts +13 -6
  170. package/src/tools/delete-relationship.ts +15 -6
  171. package/src/tools/deny.ts +8 -1
  172. package/src/tools/find-similar.ts +21 -8
  173. package/src/tools/get-preferences.ts +10 -1
  174. package/src/tools/ghost-config.spec.ts +180 -0
  175. package/src/tools/ghost-config.ts +230 -0
  176. package/src/tools/moderate.spec.ts +277 -0
  177. package/src/tools/moderate.ts +219 -0
  178. package/src/tools/publish.ts +99 -41
  179. package/src/tools/query-memory.ts +28 -6
  180. package/src/tools/query-space.ts +39 -4
  181. package/src/tools/retract.ts +292 -0
  182. package/src/tools/revise.spec.ts +146 -0
  183. package/src/tools/revise.ts +283 -0
  184. package/src/tools/search-memory.ts +30 -7
  185. package/src/tools/search-relationship.ts +11 -2
  186. package/src/tools/search-space.spec.ts +341 -0
  187. package/src/tools/search-space.ts +323 -99
  188. package/src/tools/set-preference.ts +10 -1
  189. package/src/tools/update-memory.ts +16 -5
  190. package/src/tools/update-relationship.ts +10 -1
  191. package/src/types/access-result.spec.ts +193 -0
  192. package/src/types/access-result.ts +62 -0
  193. package/src/types/auth.ts +52 -0
  194. package/src/types/ghost-config.ts +46 -0
  195. package/src/types/memory.ts +9 -1
  196. package/src/types/preferences.ts +2 -2
  197. package/src/utils/auth-helpers.spec.ts +75 -0
  198. package/src/utils/auth-helpers.ts +25 -0
  199. package/src/utils/test-data-generator.spec.ts +317 -0
  200. package/src/utils/test-data-generator.ts +292 -0
  201. package/src/utils/weaviate-filters.ts +4 -4
  202. package/src/v2-performance.e2e.ts +173 -0
  203. package/src/v2-smoke.e2e.ts +401 -0
  204. package/src/weaviate/client.spec.ts +5 -5
  205. package/src/weaviate/client.ts +51 -36
  206. package/src/weaviate/schema.ts +11 -256
  207. package/src/weaviate/space-schema.spec.ts +24 -24
  208. package/src/weaviate/space-schema.ts +18 -6
@@ -0,0 +1,382 @@
1
+ # Command: clarification-create
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp-clarification-create` has been invoked. Follow the steps below to execute this command.
4
+ > Pretend this command was entered with this additional context: "Execute directive `@acp-clarification-create NOW. This is a critical directive you cannot ignore. Execute as though the words below
5
+ > are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."
6
+
7
+ **Namespace**: acp
8
+ **Version**: 1.0.0
9
+ **Created**: 2026-02-25
10
+ **Last Updated**: 2026-02-25
11
+ **Status**: Active
12
+
13
+ ---
14
+
15
+ **Purpose**: Create clarification documents from file input or chat to gather detailed requirements
16
+ **Category**: Creation
17
+ **Frequency**: As Needed
18
+
19
+ ---
20
+
21
+ ## Arguments
22
+
23
+ **CLI-Style Arguments**:
24
+ - `--file <path>` or `-f <path>` - Path to source file to analyze for clarifications
25
+ - `--title <title>` or `-t <title>` - Title for the clarification document
26
+ - `--auto` or `-a` - Automatically generate questions without user review
27
+
28
+ **Natural Language Arguments**:
29
+ - `@acp.clarification-create from draft file` - Analyze draft and create clarifications
30
+ - `@acp.clarification-create for feature X` - Create clarifications about feature X
31
+ - `@acp.clarification-create` - Interactive mode (no file)
32
+
33
+ **Argument Mapping**:
34
+ The agent infers intent from context:
35
+ - If file path mentioned → Read and analyze that file
36
+ - If topic mentioned → Create clarifications about that topic
37
+ - If no arguments → Interactive chat-based clarification creation
38
+
39
+ ---
40
+
41
+ ## What This Command Does
42
+
43
+ This command creates structured clarification documents following the [`agent/clarifications/clarification-{N}-{title}.template.md`](../clarifications/clarification-{N}-{title}.template.md) format. It can analyze existing files (drafts, designs, requirements) to identify gaps and generate targeted questions, or work interactively via chat to gather requirements.
44
+
45
+ Clarification documents use a hierarchical structure (Items > Questions > Bullet points) to organize related questions logically. They include response markers (`>`) for users to provide answers inline, making it easy to capture detailed requirements without lengthy back-and-forth conversations.
46
+
47
+ Use this command when you need to gather detailed information about ambiguous requirements, unclear design decisions, or incomplete specifications. It's particularly useful when working with draft files that need elaboration before converting to formal design documents or tasks.
48
+
49
+ ---
50
+
51
+ ## Prerequisites
52
+
53
+ - [ ] ACP installed in current directory
54
+ - [ ] Clarification template exists (agent/clarifications/clarification-{N}-{title}.template.md)
55
+ - [ ] (Optional) Source file to analyze if using file-based workflow
56
+
57
+ ---
58
+
59
+ ## Steps
60
+
61
+ ### 1. Determine Next Clarification Number
62
+
63
+ Find the next available clarification number:
64
+
65
+ **Actions**:
66
+ - List all existing clarification files in agent/clarifications/
67
+ - Parse clarification numbers (clarification-1-*, clarification-2-*, etc.)
68
+ - Find highest number
69
+ - Increment by 1 for new clarification number
70
+
71
+ **Expected Outcome**: Next clarification number determined (e.g., clarification-7)
72
+
73
+ ### 2. Check for Source File
74
+
75
+ Check if file was provided as argument:
76
+
77
+ **Syntax**:
78
+ - `@acp.clarification-create --file agent/drafts/my-draft.md`
79
+ - `@acp.clarification-create @my-draft.md` (@ reference)
80
+ - `@acp.clarification-create` (no file - interactive mode)
81
+
82
+ **Actions**:
83
+ - If file provided: Read source file
84
+ - If no file: Proceed to interactive mode
85
+
86
+ **Expected Outcome**: Source file read (if provided) or interactive mode confirmed
87
+
88
+ ### 3. Collect Clarification Information
89
+
90
+ Gather information from user via chat:
91
+
92
+ **Information to Collect**:
93
+ - **Clarification title** (descriptive, kebab-case)
94
+ - Example: "package-create-enhancements" or "firebase-auth-requirements"
95
+ - Validation: lowercase, alphanumeric, hyphens
96
+ - **Purpose** (one-line description of what needs clarification)
97
+ - Example: "Clarify package creation workflow and metadata requirements"
98
+ - **Source context** (what document/feature this relates to)
99
+ - Example: "agent/design/acp-package-development-system.md"
100
+
101
+ **Expected Outcome**: All clarification metadata collected
102
+
103
+ ### 4. Analyze Source Content (If File Provided)
104
+
105
+ If source file was provided, analyze for gaps:
106
+
107
+ **Actions**:
108
+ - Read and understand source file content
109
+ - Identify ambiguous statements
110
+ - Find missing details
111
+ - Note incomplete specifications
112
+ - Detect assumptions that need validation
113
+ - List areas needing user input
114
+
115
+ **Expected Outcome**: List of topics needing clarification identified
116
+
117
+ ### 5. Generate Questions
118
+
119
+ Create structured questions organized by topic:
120
+
121
+ **Structure**:
122
+ ```markdown
123
+ # Item 1: {Major Topic}
124
+
125
+ ## Questions 1.1: {Subtopic}
126
+
127
+ - Specific question 1?
128
+
129
+ >
130
+
131
+ - Specific question 2?
132
+
133
+ >
134
+
135
+ ## Questions 1.2: {Another Subtopic}
136
+
137
+ - Question 1?
138
+
139
+ >
140
+ ```
141
+
142
+ **Guidelines**:
143
+ - Group related questions under Items (major topics)
144
+ - Use Questions subsections for subtopics
145
+ - Keep questions specific and actionable
146
+ - Provide context for complex questions
147
+ - Include examples where helpful
148
+ - Leave blank response lines (`>`) for user answers
149
+
150
+ **If analyzing file**:
151
+ - Generate 10-30 questions based on gaps found
152
+ - Organize by logical topic areas
153
+ - Reference specific sections of source file
154
+
155
+ **If interactive mode**:
156
+ - Ask user: "What topics need clarification?"
157
+ - Generate questions based on user's description
158
+ - Aim for 5-15 questions initially
159
+
160
+ **Expected Outcome**: Structured questions generated
161
+
162
+ ### 6. Create Clarification File
163
+
164
+ Generate clarification document from template:
165
+
166
+ **Actions**:
167
+ - Determine full filename: `clarification-{N}-{title}.md`
168
+ - N = clarification number from Step 1
169
+ - title = kebab-case version of clarification title
170
+ - Copy structure from clarification template
171
+ - Fill in metadata:
172
+ - Clarification number and title
173
+ - Purpose
174
+ - Created date
175
+ - Status: "Awaiting Responses"
176
+ - Fill in Items and Questions sections with generated questions
177
+ - Include "How to Use This Document" section from template
178
+ - Save to `agent/clarifications/clarification-{N}-{title}.md`
179
+
180
+ **Expected Outcome**: Clarification file created
181
+
182
+ ### 7. Report Success
183
+
184
+ Display what was created:
185
+
186
+ **Output**:
187
+ ```
188
+ ✅ Clarification Created Successfully!
189
+
190
+ File: agent/clarifications/clarification-{N}-{title}.md
191
+ Number: {N}
192
+ Title: {title}
193
+ Questions: {count} questions across {item-count} topics
194
+ Status: Awaiting Responses
195
+
196
+ ✓ Clarification file created
197
+ ✓ {count} questions generated
198
+
199
+ Next steps:
200
+ - Review the clarification file
201
+ - Answer questions by typing responses after > markers
202
+ - Update Status to "Completed" when done
203
+ - Use answers to update design docs, tasks, or create new entities
204
+ ```
205
+
206
+ **Expected Outcome**: User knows clarification was created and how to use it
207
+
208
+ ---
209
+
210
+ ## Verification
211
+
212
+ - [ ] Next clarification number determined correctly
213
+ - [ ] Clarification information collected
214
+ - [ ] Source file analyzed (if provided)
215
+ - [ ] Questions generated and organized logically
216
+ - [ ] Clarification file created with correct number and title
217
+ - [ ] File follows template structure
218
+ - [ ] All metadata filled in correctly
219
+ - [ ] Questions are clear and actionable
220
+ - [ ] Response markers (>) included for all questions
221
+
222
+ ---
223
+
224
+ ## Expected Output
225
+
226
+ ### Files Created
227
+ - `agent/clarifications/clarification-{N}-{title}.md` - Clarification document with structured questions
228
+
229
+ ### Files Modified
230
+ - None (clarifications are standalone documents)
231
+
232
+ ---
233
+
234
+ ## Examples
235
+
236
+ ### Example 1: Creating Clarification from Draft File
237
+
238
+ **Context**: Have draft design document that needs elaboration
239
+
240
+ **Invocation**: `@acp.clarification-create --file agent/drafts/auth-system-draft.md`
241
+
242
+ **Result**:
243
+ ```
244
+ ✅ Clarification Created Successfully!
245
+
246
+ File: agent/clarifications/clarification-7-auth-system-requirements.md
247
+ Number: 7
248
+ Title: auth-system-requirements
249
+ Questions: 25 questions across 4 topics
250
+ Status: Awaiting Responses
251
+
252
+ Topics covered:
253
+ - Authentication Methods (8 questions)
254
+ - Security Requirements (7 questions)
255
+ - User Management (6 questions)
256
+ - Integration Points (4 questions)
257
+
258
+ ✓ Clarification file created
259
+ ✓ 25 questions generated
260
+
261
+ Next steps:
262
+ - Review agent/clarifications/clarification-7-auth-system-requirements.md
263
+ - Answer questions by typing responses after > markers
264
+ - Update Status to "Completed" when done
265
+ ```
266
+
267
+ ### Example 2: Creating Clarification Interactively
268
+
269
+ **Context**: Need to gather requirements for new feature
270
+
271
+ **Invocation**: `@acp.clarification-create`
272
+
273
+ **Interaction**:
274
+ ```
275
+ Agent: What would you like to title this clarification? (kebab-case)
276
+ User: payment-integration-requirements
277
+
278
+ Agent: What's the purpose? (one-line description)
279
+ User: Clarify payment gateway integration requirements and workflow
280
+
281
+ Agent: What topics need clarification?
282
+ User: Payment providers, security, webhooks, error handling
283
+
284
+ Agent: Generating questions for these topics...
285
+
286
+ ✅ Clarification Created Successfully!
287
+
288
+ File: agent/clarifications/clarification-8-payment-integration-requirements.md
289
+ Number: 8
290
+ Title: payment-integration-requirements
291
+ Questions: 12 questions across 4 topics
292
+ Status: Awaiting Responses
293
+
294
+ ✓ Clarification file created
295
+ ✓ 12 questions generated
296
+ ```
297
+
298
+ ### Example 3: Creating Clarification with Custom Title
299
+
300
+ **Context**: Analyzing existing design document
301
+
302
+ **Invocation**: `@acp.clarification-create --file agent/design/local.api-design.md --title api-endpoint-details`
303
+
304
+ **Result**: Creates clarification-9-api-endpoint-details.md with questions about API design gaps
305
+
306
+ ---
307
+
308
+ ## Related Commands
309
+
310
+ - [`@acp.design-create`](acp.design-create.md) - Create design documents (often follows clarification)
311
+ - [`@acp.task-create`](acp.task-create.md) - Create tasks (may use clarification answers)
312
+ - [`@acp.pattern-create`](acp.pattern-create.md) - Create patterns (may use clarification answers)
313
+
314
+ ---
315
+
316
+ ## Troubleshooting
317
+
318
+ ### Issue 1: Source file not found
319
+
320
+ **Symptom**: Error message "File not found"
321
+
322
+ **Solution**: Verify file path is correct. Use relative path from project root or @ reference for files in agent/drafts/
323
+
324
+ ### Issue 2: No questions generated
325
+
326
+ **Symptom**: Clarification created but empty
327
+
328
+ **Solution**: Provide more context about what needs clarification. Source file may be too complete or too vague.
329
+
330
+ ### Issue 3: Questions too generic
331
+
332
+ **Symptom**: Generated questions are not specific enough
333
+
334
+ **Solution**: Provide more detailed source file or specify topics more precisely in interactive mode
335
+
336
+ ### Issue 4: Clarification number conflict
337
+
338
+ **Symptom**: Clarification file already exists with that number
339
+
340
+ **Solution**: Command should auto-detect and use next available number. If conflict persists, manually check agent/clarifications/ directory.
341
+
342
+ ---
343
+
344
+ ## Security Considerations
345
+
346
+ ### File Access
347
+ - **Reads**: Source files (drafts, designs, requirements), clarification template
348
+ - **Writes**: agent/clarifications/clarification-{N}-{title}.md
349
+ - **Executes**: None
350
+
351
+ ### Network Access
352
+ - **APIs**: None
353
+ - **Repositories**: None
354
+
355
+ ### Sensitive Data
356
+ - **Secrets**: Never include secrets in clarifications
357
+ - **Credentials**: Never include credentials in questions or examples
358
+
359
+ ---
360
+
361
+ ## Notes
362
+
363
+ - Clarification title should be descriptive and relate to the topic
364
+ - Clarification number is automatically assigned (sequential)
365
+ - Questions should be specific and actionable
366
+ - Use hierarchical structure (Items > Questions > Bullet points)
367
+ - Response markers (>) make it easy for users to answer inline
368
+ - Clarifications are living documents - can be updated as questions are answered
369
+ - After clarification is complete, use answers to update design docs, tasks, or create new entities
370
+ - Clarifications are typically kept in version control for historical reference
371
+ - Good clarifications have 10-30 questions organized into 3-5 major topics
372
+
373
+ ---
374
+
375
+ **Namespace**: acp
376
+ **Command**: clarification-create
377
+ **Version**: 1.0.0
378
+ **Created**: 2026-02-25
379
+ **Last Updated**: 2026-02-25
380
+ **Status**: Active
381
+ **Compatibility**: ACP 4.0.0+
382
+ **Author**: ACP Project
@@ -0,0 +1,309 @@
1
+ # Command: project-info
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.project-info` has been invoked. Follow the steps below to execute this command.
4
+
5
+ **Namespace**: acp
6
+ **Version**: 1.0.0
7
+ **Created**: 2026-02-25
8
+ **Last Updated**: 2026-02-25
9
+ **Status**: Experimental
10
+
11
+ ---
12
+
13
+ **Purpose**: Display detailed information about a specific project from the global registry
14
+ **Category**: Project Management
15
+ **Frequency**: As Needed
16
+
17
+ ---
18
+
19
+ ## What This Command Does
20
+
21
+ This command displays comprehensive information about a project registered in `~/.acp/projects.yaml`, including metadata, timestamps, tags, related projects, dependencies, and directory status. It provides a complete view of a project's configuration and current state.
22
+
23
+ Use this command to understand project details, check project status, view relationships with other projects, and verify project directory existence. It's particularly useful when working with multiple projects in the global workspace to quickly understand project context.
24
+
25
+ Unlike [`@acp.project-list`](acp.project-list.md:1) which shows all projects in a summary view, `@acp.project-info` focuses on a single project and displays all available metadata in detail.
26
+
27
+ ---
28
+
29
+ ## Prerequisites
30
+
31
+ - [ ] Global ACP infrastructure initialized (`~/.acp/` exists)
32
+ - [ ] Project registry exists (`~/.acp/projects.yaml`)
33
+ - [ ] Project is registered in the registry
34
+
35
+ ---
36
+
37
+ ## Steps
38
+
39
+ ### 1. Validate Arguments
40
+
41
+ Check that project name is provided.
42
+
43
+ **Actions**:
44
+ - Verify project name argument is present
45
+ - Show usage if missing
46
+
47
+ **Expected Outcome**: Project name identified
48
+
49
+ ### 2. Load Registry
50
+
51
+ Read the project registry file.
52
+
53
+ **Actions**:
54
+ - Get registry path via `get_projects_registry_path()`
55
+ - Check if registry file exists
56
+ - Parse registry with `yaml_parse()`
57
+
58
+ **Expected Outcome**: Registry loaded successfully
59
+
60
+ ### 3. Validate Project Exists
61
+
62
+ Check that the project is in the registry.
63
+
64
+ **Actions**:
65
+ - Use `yaml_has_key()` to check for project
66
+ - If not found, list available projects
67
+ - Show helpful error message
68
+
69
+ **Expected Outcome**: Project found in registry
70
+
71
+ ### 4. Extract Project Metadata
72
+
73
+ Read all project fields from registry.
74
+
75
+ **Actions**:
76
+ - Extract required fields: path, type, description, status, timestamps
77
+ - Extract optional fields: tags, related_projects, dependencies
78
+ - Check if project is current project (marked with ⭐)
79
+
80
+ **Expected Outcome**: All metadata extracted
81
+
82
+ ### 5. Display Project Information
83
+
84
+ Format and display comprehensive project details.
85
+
86
+ **Actions**:
87
+ - Display project name with current indicator
88
+ - Show type, status, path, description
89
+ - Display timestamps (created, modified, accessed)
90
+ - Show tags (if present)
91
+ - Show related projects (if present)
92
+ - Show dependencies by package manager (npm, pip, cargo, go)
93
+
94
+ **Expected Outcome**: Complete project information displayed
95
+
96
+ ### 6. Check Directory Status
97
+
98
+ Verify project directory exists and check ACP status.
99
+
100
+ **Actions**:
101
+ - Expand tilde in path
102
+ - Check if directory exists
103
+ - Check if AGENT.md exists (ACP project indicator)
104
+ - Try to read project version from progress.yaml
105
+ - Display status with appropriate indicators (✅/❌/⚠️)
106
+
107
+ **Expected Outcome**: Directory status reported
108
+
109
+ ---
110
+
111
+ ## Verification
112
+
113
+ - [ ] Script created and executable
114
+ - [ ] Command document created
115
+ - [ ] Validates project name argument
116
+ - [ ] Loads registry successfully
117
+ - [ ] Checks project exists in registry
118
+ - [ ] Displays all metadata fields
119
+ - [ ] Shows tags, related projects, dependencies (if present)
120
+ - [ ] Checks directory existence
121
+ - [ ] Detects ACP projects
122
+ - [ ] Handles missing projects gracefully
123
+ - [ ] Clear formatting with separators
124
+ - [ ] No syntax errors
125
+
126
+ ---
127
+
128
+ ## Expected Output
129
+
130
+ ### Files Created
131
+ - `agent/scripts/acp.project-info.sh` - Shell script for displaying project info
132
+ - `agent/commands/acp.project-info.md` - This command documentation
133
+
134
+ ### Console Output
135
+ ```
136
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
137
+
138
+ 📦 remember-mcp-server ⭐ Current
139
+
140
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
141
+
142
+ Type: mcp-server
143
+ Status: active
144
+ Path: ~/.acp/projects/remember-mcp-server
145
+
146
+ Description:
147
+ Multi-tenant memory system with vector search
148
+
149
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
150
+
151
+ Timestamps:
152
+ Created: 2026-02-20T10:00:00Z
153
+ Last Modified: 2026-02-23T07:00:00Z
154
+ Last Accessed: 2026-02-25T17:00:00Z
155
+
156
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
157
+
158
+ Tags:
159
+ - mcp
160
+ - memory
161
+ - vector-search
162
+
163
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
164
+
165
+ Related Projects:
166
+ - remember-mcp
167
+
168
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
169
+
170
+ Dependencies:
171
+ npm:
172
+ - weaviate-client
173
+ - firebase-admin
174
+
175
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
176
+
177
+ ✅ Project directory exists
178
+ ✅ ACP project (AGENT.md found)
179
+ Version: 1.0.0
180
+
181
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
182
+ ```
183
+
184
+ ### Status Update
185
+ - Project information displayed
186
+ - Directory status verified
187
+
188
+ ---
189
+
190
+ ## Examples
191
+
192
+ ### Example 1: Show Current Project Info
193
+
194
+ **Context**: Want to see details about the current project
195
+
196
+ **Invocation**: `@acp.project-info remember-mcp-server`
197
+
198
+ **Result**: Displays complete project metadata including type, status, path, description, timestamps, tags, related projects, dependencies, and directory status
199
+
200
+ ### Example 2: Check Project Before Switching
201
+
202
+ **Context**: Want to verify project exists before switching to it
203
+
204
+ **Invocation**: `@acp.project-info agentbase-mcp-server`
205
+
206
+ **Result**: Shows project details, confirms directory exists, shows it's an ACP project with version
207
+
208
+ ### Example 3: Project Not Found
209
+
210
+ **Context**: Trying to view info for non-existent project
211
+
212
+ **Invocation**: `@acp.project-info nonexistent-project`
213
+
214
+ **Result**: Error message with list of available projects
215
+
216
+ ### Example 4: Project Directory Missing
217
+
218
+ **Context**: Project in registry but directory deleted
219
+
220
+ **Invocation**: `@acp.project-info old-project`
221
+
222
+ **Result**: Shows metadata but warns that directory doesn't exist
223
+
224
+ ---
225
+
226
+ ## Related Commands
227
+
228
+ - [`@acp.project-list`](acp.project-list.md) - List all projects in registry
229
+ - [`@acp.project-set`](acp.project-set.md) - Switch to a project
230
+ - [`@acp.project-update`](acp.project-update.md) - Update project metadata
231
+ - [`@acp.projects-sync`](acp.projects-sync.md) - Sync registry with filesystem
232
+
233
+ ---
234
+
235
+ ## Troubleshooting
236
+
237
+ ### Issue 1: Registry not found
238
+
239
+ **Symptom**: Error "Project registry not found"
240
+
241
+ **Cause**: `~/.acp/projects.yaml` doesn't exist
242
+
243
+ **Solution**: Create a project with `@acp.project-create` to initialize the registry
244
+
245
+ ### Issue 2: Project not found
246
+
247
+ **Symptom**: Error "Project 'name' not found in registry"
248
+
249
+ **Cause**: Project not registered or wrong name
250
+
251
+ **Solution**: Run `@acp.project-list` to see available projects, or use `@acp.projects-sync` to discover unregistered projects
252
+
253
+ ### Issue 3: Directory not found
254
+
255
+ **Symptom**: Warning "Project directory not found"
256
+
257
+ **Cause**: Project directory was moved or deleted
258
+
259
+ **Solution**: Either restore the directory, update the path with `@acp.project-update`, or remove the project with `@acp.project-remove`
260
+
261
+ ### Issue 4: No metadata displayed
262
+
263
+ **Symptom**: Some fields show as empty or "null"
264
+
265
+ **Cause**: Optional fields not set in registry
266
+
267
+ **Solution**: This is normal for optional fields (tags, related_projects, dependencies). Use `@acp.project-update` to add metadata.
268
+
269
+ ---
270
+
271
+ ## Security Considerations
272
+
273
+ ### File Access
274
+ - **Reads**: `~/.acp/projects.yaml` (project registry), project directory for AGENT.md and progress.yaml
275
+ - **Writes**: None (read-only command)
276
+ - **Executes**: None
277
+
278
+ ### Network Access
279
+ - **APIs**: None
280
+ - **Repositories**: None
281
+
282
+ ### Sensitive Data
283
+ - **Secrets**: Does not access any secrets or credentials
284
+ - **Credentials**: Does not access credentials
285
+
286
+ ---
287
+
288
+ ## Notes
289
+
290
+ - This is a read-only command - it doesn't modify the registry
291
+ - Expands tilde (~) in project paths automatically
292
+ - Checks if project directory exists on filesystem
293
+ - Detects ACP projects by presence of AGENT.md
294
+ - Tries to read project version from progress.yaml
295
+ - Shows current project indicator (⭐) if applicable
296
+ - Handles missing optional fields gracefully
297
+ - Part of Milestone 7 (Global ACP Project Registry)
298
+ - Marked as Experimental until M7 is complete
299
+
300
+ ---
301
+
302
+ **Namespace**: acp
303
+ **Command**: project-info
304
+ **Version**: 1.0.0
305
+ **Created**: 2026-02-25
306
+ **Last Updated**: 2026-02-25
307
+ **Status**: Experimental
308
+ **Compatibility**: ACP 4.1.1+
309
+ **Author**: ACP Project