@aidemd-mcp/aidemd 0.0.0-stage → 0.21.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 (977) hide show
  1. package/.aide/bin/aide-tree.mjs +8 -0
  2. package/.aide/config/brain.aide +1449 -0
  3. package/.aide/docs/.aide +130 -0
  4. package/.aide/docs/agent-readable-code.md +74 -0
  5. package/.aide/docs/aide-spec.md +290 -0
  6. package/.aide/docs/aide-template.md +141 -0
  7. package/.aide/docs/automated-qa.md +111 -0
  8. package/.aide/docs/brain-aide.md +242 -0
  9. package/.aide/docs/brief-aide.md +124 -0
  10. package/.aide/docs/cascading-alignment.md +107 -0
  11. package/.aide/docs/index.md +52 -0
  12. package/.aide/docs/plan-aide.md +132 -0
  13. package/.aide/docs/progressive-disclosure.md +74 -0
  14. package/.aide/docs/session-aide.md +210 -0
  15. package/.aide/docs/todo-aide.md +82 -0
  16. package/.aide/intent.aide +71 -0
  17. package/.aide/readme.aide +343 -0
  18. package/.aide/reference/hooks/PostToolUse.md +24 -0
  19. package/.aide/reference/hooks/SessionEnd.md +22 -0
  20. package/.aide/reference/hooks/SessionStart.md +18 -0
  21. package/.aide/reference/hooks/Stop.md +18 -0
  22. package/.aide/reference/hooks/UserPromptSubmit.md +18 -0
  23. package/.aide/reference/hooks/index.md +36 -0
  24. package/.aide/reference/tools/aide_brain.md +34 -0
  25. package/.aide/reference/tools/aide_cleanup.md +31 -0
  26. package/.aide/reference/tools/aide_discover.md +40 -0
  27. package/.aide/reference/tools/aide_frontmatter.md +36 -0
  28. package/.aide/reference/tools/aide_info.md +33 -0
  29. package/.aide/reference/tools/aide_init.md +39 -0
  30. package/.aide/reference/tools/aide_inspect.md +27 -0
  31. package/.aide/reference/tools/aide_observer_end_session.md +36 -0
  32. package/.aide/reference/tools/aide_observer_event.md +52 -0
  33. package/.aide/reference/tools/aide_observer_start.md +45 -0
  34. package/.aide/reference/tools/aide_read.md +29 -0
  35. package/.aide/reference/tools/aide_scaffold.md +35 -0
  36. package/.aide/reference/tools/aide_upgrade.md +45 -0
  37. package/.aide/reference/tools/aide_validate.md +36 -0
  38. package/.aide/reference/tools/index.md +25 -0
  39. package/.aide/session.aide +774 -0
  40. package/.claude/.aide +316 -0
  41. package/.claude/agents/aide/aide-aligner.md +129 -0
  42. package/.claude/agents/aide/aide-architect.md +151 -0
  43. package/.claude/agents/aide/aide-auditor.md +100 -0
  44. package/.claude/agents/aide/aide-domain-expert.md +84 -0
  45. package/.claude/agents/aide/aide-explorer.md +63 -0
  46. package/.claude/agents/aide/aide-implementor.md +121 -0
  47. package/.claude/agents/aide/aide-maintainer.md +115 -0
  48. package/.claude/agents/aide/aide-qa.md +95 -0
  49. package/.claude/agents/aide/aide-spec-writer.md +220 -0
  50. package/.claude/agents/aide/aide-strategist.md +104 -0
  51. package/.claude/agents/aide/aide-upgrader.md +71 -0
  52. package/.claude/agents/kanban/kanban-maintainer.md +113 -0
  53. package/.claude/commands/aide/align.md +24 -0
  54. package/.claude/commands/aide/brain.md +169 -0
  55. package/.claude/commands/aide/build.md +22 -0
  56. package/.claude/commands/aide/fix.md +23 -0
  57. package/.claude/commands/aide/handoff.md +15 -0
  58. package/.claude/commands/aide/plan.md +32 -0
  59. package/.claude/commands/aide/qa.md +27 -0
  60. package/.claude/commands/aide/refactor.md +106 -0
  61. package/.claude/commands/aide/research.md +21 -0
  62. package/.claude/commands/aide/spec.md +35 -0
  63. package/.claude/commands/aide/synthesize.md +24 -0
  64. package/.claude/commands/aide/update-playbook.md +3 -0
  65. package/.claude/commands/aide/upgrade.md +158 -0
  66. package/.claude/commands/aide.md +13 -0
  67. package/.claude/skills/aide/SKILL.md +611 -0
  68. package/.claude/skills/aide-brain-author/SKILL.md +122 -0
  69. package/.claude/skills/aide-handoff/SKILL.md +56 -0
  70. package/.claude/skills/aide-observer/SKILL.md +94 -0
  71. package/.claude/skills/brain/SKILL.md +69 -0
  72. package/.claude/skills/kanban/SKILL.md +24 -0
  73. package/.claude/skills/study-playbook/SKILL.md +11 -0
  74. package/CHANGELOG.md +428 -0
  75. package/LICENSE +21 -0
  76. package/README.md +219 -2
  77. package/dist/cli/hook/findLinkedSession/index.d.ts +8 -0
  78. package/dist/cli/hook/findLinkedSession/index.js +18 -0
  79. package/dist/cli/hook/index.d.ts +21 -0
  80. package/dist/cli/hook/index.js +64 -0
  81. package/dist/cli/hook/mapHookEvent/index.d.ts +9 -0
  82. package/dist/cli/hook/mapHookEvent/index.js +25 -0
  83. package/dist/cli/hook/parseHookInput/index.d.ts +9 -0
  84. package/dist/cli/hook/parseHookInput/index.js +43 -0
  85. package/dist/cli/hook/readStdin/index.d.ts +10 -0
  86. package/dist/cli/hook/readStdin/index.js +25 -0
  87. package/dist/cli/hook/resolveHookRoot/index.d.ts +10 -0
  88. package/dist/cli/hook/resolveHookRoot/index.js +14 -0
  89. package/dist/cli/hook/types/index.d.ts +24 -0
  90. package/dist/cli/hook/types/index.js +1 -0
  91. package/dist/cli/index.d.ts +24 -0
  92. package/dist/cli/index.js +62 -0
  93. package/dist/cli/init/ensureGlobalAide/index.d.ts +19 -0
  94. package/dist/cli/init/ensureGlobalAide/index.js +36 -0
  95. package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.d.ts +8 -0
  96. package/dist/cli/init/ensureGlobalAide/installGlobalPackage/index.js +15 -0
  97. package/dist/cli/init/index.d.ts +82 -0
  98. package/dist/cli/init/index.js +465 -0
  99. package/dist/cli/init/renderWarning/index.d.ts +41 -0
  100. package/dist/cli/init/renderWarning/index.js +66 -0
  101. package/dist/cli/init/reportHooks/index.d.ts +31 -0
  102. package/dist/cli/init/reportHooks/index.js +75 -0
  103. package/dist/cli/init/types/index.d.ts +46 -0
  104. package/dist/cli/init/types/index.js +1 -0
  105. package/dist/cli/init/writeMcpEntry/index.d.ts +30 -0
  106. package/dist/cli/init/writeMcpEntry/index.js +81 -0
  107. package/dist/cli/isMainModule/index.d.ts +11 -0
  108. package/dist/cli/isMainModule/index.js +27 -0
  109. package/dist/cli/launchSync/index.d.ts +9 -0
  110. package/dist/cli/launchSync/index.js +40 -0
  111. package/dist/cli/shared/writeMcpEntry/index.d.ts +49 -0
  112. package/dist/cli/shared/writeMcpEntry/index.js +107 -0
  113. package/dist/cli/sync/index.d.ts +27 -0
  114. package/dist/cli/sync/index.js +125 -0
  115. package/dist/cli/tree/App/index.d.ts +14 -0
  116. package/dist/cli/tree/App/index.js +291 -0
  117. package/dist/cli/tree/DetailPanel/index.d.ts +28 -0
  118. package/dist/cli/tree/DetailPanel/index.js +77 -0
  119. package/dist/cli/tree/DetailPanel/renderPlanDetail/index.d.ts +20 -0
  120. package/dist/cli/tree/DetailPanel/renderPlanDetail/index.js +30 -0
  121. package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.d.ts +32 -0
  122. package/dist/cli/tree/DetailPanel/renderPlanDetail/parsePlanItems/index.js +80 -0
  123. package/dist/cli/tree/DetailPanel/renderTodoDetail/index.d.ts +17 -0
  124. package/dist/cli/tree/DetailPanel/renderTodoDetail/index.js +19 -0
  125. package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.d.ts +26 -0
  126. package/dist/cli/tree/DetailPanel/renderTodoDetail/parseTodoItems/index.js +48 -0
  127. package/dist/cli/tree/TreePanel/index.d.ts +24 -0
  128. package/dist/cli/tree/TreePanel/index.js +96 -0
  129. package/dist/cli/tree/findPrimaryIntent/index.d.ts +12 -0
  130. package/dist/cli/tree/findPrimaryIntent/index.js +20 -0
  131. package/dist/cli/tree/flattenTree/index.d.ts +16 -0
  132. package/dist/cli/tree/flattenTree/index.js +20 -0
  133. package/dist/cli/tree/index.d.ts +2 -0
  134. package/dist/cli/tree/index.js +15 -0
  135. package/dist/cli/view/awaitShutdown/index.d.ts +12 -0
  136. package/dist/cli/view/awaitShutdown/index.js +32 -0
  137. package/dist/cli/view/buildLink/index.d.ts +13 -0
  138. package/dist/cli/view/buildLink/index.js +18 -0
  139. package/dist/cli/view/formatPortNote/index.d.ts +10 -0
  140. package/dist/cli/view/formatPortNote/index.js +11 -0
  141. package/dist/cli/view/formatUsage/index.d.ts +6 -0
  142. package/dist/cli/view/formatUsage/index.js +24 -0
  143. package/dist/cli/view/index.d.ts +21 -0
  144. package/dist/cli/view/index.js +102 -0
  145. package/dist/cli/view/parseViewArgs/index.d.ts +14 -0
  146. package/dist/cli/view/parseViewArgs/index.js +59 -0
  147. package/dist/cli/view/types/index.d.ts +20 -0
  148. package/dist/cli/view/types/index.js +1 -0
  149. package/dist/index.d.ts +10 -0
  150. package/dist/index.js +17 -0
  151. package/dist/observer/assets/Inter-OFL.txt +93 -0
  152. package/dist/observer/assets/JetBrainsMono-OFL.txt +93 -0
  153. package/dist/observer/assets/page.css +1 -0
  154. package/dist/observer/assets/page.js +158 -0
  155. package/dist/observer/assets/page.js.LEGAL.txt +56 -0
  156. package/dist/observer/bindServer/index.d.ts +17 -0
  157. package/dist/observer/bindServer/index.js +29 -0
  158. package/dist/observer/buildPageShell/index.d.ts +8 -0
  159. package/dist/observer/buildPageShell/index.js +30 -0
  160. package/dist/observer/buildProjectView/index.d.ts +12 -0
  161. package/dist/observer/buildProjectView/index.js +25 -0
  162. package/dist/observer/buildViewLink/index.d.ts +16 -0
  163. package/dist/observer/buildViewLink/index.js +15 -0
  164. package/dist/observer/createEventStore/index.d.ts +14 -0
  165. package/dist/observer/createEventStore/index.js +98 -0
  166. package/dist/observer/createStatusPusher/index.d.ts +16 -0
  167. package/dist/observer/createStatusPusher/index.js +40 -0
  168. package/dist/observer/createStop/index.d.ts +23 -0
  169. package/dist/observer/createStop/index.js +40 -0
  170. package/dist/observer/createStreamHub/frame/index.d.ts +6 -0
  171. package/dist/observer/createStreamHub/frame/index.js +4 -0
  172. package/dist/observer/createStreamHub/index.d.ts +13 -0
  173. package/dist/observer/createStreamHub/index.js +76 -0
  174. package/dist/observer/findRunningObserver/index.d.ts +12 -0
  175. package/dist/observer/findRunningObserver/index.js +33 -0
  176. package/dist/observer/findRunningObserver/probeIndex/index.d.ts +13 -0
  177. package/dist/observer/findRunningObserver/probeIndex/index.js +28 -0
  178. package/dist/observer/guardRequest/index.d.ts +20 -0
  179. package/dist/observer/guardRequest/index.js +38 -0
  180. package/dist/observer/guardRequest/matchesToken/index.d.ts +5 -0
  181. package/dist/observer/guardRequest/matchesToken/index.js +9 -0
  182. package/dist/observer/guardRequest/types/index.d.ts +8 -0
  183. package/dist/observer/guardRequest/types/index.js +1 -0
  184. package/dist/observer/handleRequest/index.d.ts +13 -0
  185. package/dist/observer/handleRequest/index.js +76 -0
  186. package/dist/observer/handleRequest/isTokenFree/index.d.ts +11 -0
  187. package/dist/observer/handleRequest/isTokenFree/index.js +12 -0
  188. package/dist/observer/handleRequest/matchRoute/index.d.ts +26 -0
  189. package/dist/observer/handleRequest/matchRoute/index.js +89 -0
  190. package/dist/observer/index.d.ts +23 -0
  191. package/dist/observer/index.js +112 -0
  192. package/dist/observer/listPorts/index.d.ts +9 -0
  193. package/dist/observer/listPorts/index.js +10 -0
  194. package/dist/observer/loadToken/index.d.ts +12 -0
  195. package/dist/observer/loadToken/index.js +46 -0
  196. package/dist/observer/loadToken/readStored/index.d.ts +4 -0
  197. package/dist/observer/loadToken/readStored/index.js +16 -0
  198. package/dist/observer/loadToken/writeTemp/index.d.ts +5 -0
  199. package/dist/observer/loadToken/writeTemp/index.js +8 -0
  200. package/dist/observer/locatePageAssets/index.d.ts +6 -0
  201. package/dist/observer/locatePageAssets/index.js +17 -0
  202. package/dist/observer/mintToken/index.d.ts +2 -0
  203. package/dist/observer/mintToken/index.js +6 -0
  204. package/dist/observer/rebuildStatus/index.d.ts +17 -0
  205. package/dist/observer/rebuildStatus/index.js +49 -0
  206. package/dist/observer/removeRecord/index.d.ts +10 -0
  207. package/dist/observer/removeRecord/index.js +22 -0
  208. package/dist/observer/replaySessions/index.d.ts +7 -0
  209. package/dist/observer/replaySessions/index.js +17 -0
  210. package/dist/observer/resolvePort/index.d.ts +12 -0
  211. package/dist/observer/resolvePort/index.js +21 -0
  212. package/dist/observer/routes/archiveSession/index.d.ts +11 -0
  213. package/dist/observer/routes/archiveSession/index.js +57 -0
  214. package/dist/observer/routes/deleteSession/index.d.ts +10 -0
  215. package/dist/observer/routes/deleteSession/index.js +33 -0
  216. package/dist/observer/routes/getAsset/index.d.ts +7 -0
  217. package/dist/observer/routes/getAsset/index.js +30 -0
  218. package/dist/observer/routes/getEvents/index.d.ts +3 -0
  219. package/dist/observer/routes/getEvents/index.js +13 -0
  220. package/dist/observer/routes/getFile/index.d.ts +7 -0
  221. package/dist/observer/routes/getFile/index.js +54 -0
  222. package/dist/observer/routes/getFile/resolveConfinedPath/index.d.ts +24 -0
  223. package/dist/observer/routes/getFile/resolveConfinedPath/index.js +65 -0
  224. package/dist/observer/routes/getIndex/index.d.ts +7 -0
  225. package/dist/observer/routes/getIndex/index.js +23 -0
  226. package/dist/observer/routes/getSessionPage/index.d.ts +8 -0
  227. package/dist/observer/routes/getSessionPage/index.js +10 -0
  228. package/dist/observer/routes/getStatus/index.d.ts +7 -0
  229. package/dist/observer/routes/getStatus/index.js +15 -0
  230. package/dist/observer/routes/getTask/index.d.ts +7 -0
  231. package/dist/observer/routes/getTask/index.js +47 -0
  232. package/dist/observer/routes/listArchived/index.d.ts +8 -0
  233. package/dist/observer/routes/listArchived/index.js +22 -0
  234. package/dist/observer/routes/listProjects/index.d.ts +3 -0
  235. package/dist/observer/routes/listProjects/index.js +9 -0
  236. package/dist/observer/routes/listSessions/index.d.ts +3 -0
  237. package/dist/observer/routes/listSessions/index.js +18 -0
  238. package/dist/observer/routes/postEvent/index.d.ts +12 -0
  239. package/dist/observer/routes/postEvent/index.js +76 -0
  240. package/dist/observer/routes/postEvent/readJsonBody/index.d.ts +18 -0
  241. package/dist/observer/routes/postEvent/readJsonBody/index.js +37 -0
  242. package/dist/observer/routes/postPresence/index.d.ts +12 -0
  243. package/dist/observer/routes/postPresence/index.js +63 -0
  244. package/dist/observer/routes/postShutdown/index.d.ts +13 -0
  245. package/dist/observer/routes/postShutdown/index.js +64 -0
  246. package/dist/observer/routes/restoreSession/index.d.ts +11 -0
  247. package/dist/observer/routes/restoreSession/index.js +46 -0
  248. package/dist/observer/routes/streamUpdates/index.d.ts +10 -0
  249. package/dist/observer/routes/streamUpdates/index.js +20 -0
  250. package/dist/observer/shared/announceSessions/index.d.ts +12 -0
  251. package/dist/observer/shared/announceSessions/index.js +20 -0
  252. package/dist/observer/shared/broadcastProjects/index.d.ts +10 -0
  253. package/dist/observer/shared/broadcastProjects/index.js +13 -0
  254. package/dist/observer/shared/buildObserverMessage/index.d.ts +8 -0
  255. package/dist/observer/shared/buildObserverMessage/index.js +20 -0
  256. package/dist/observer/shared/findProject/index.d.ts +12 -0
  257. package/dist/observer/shared/findProject/index.js +22 -0
  258. package/dist/observer/shared/pageAssets/index.d.ts +13 -0
  259. package/dist/observer/shared/pageAssets/index.js +16 -0
  260. package/dist/observer/shared/pageTitle/index.d.ts +7 -0
  261. package/dist/observer/shared/pageTitle/index.js +7 -0
  262. package/dist/observer/shared/parsePort/index.d.ts +12 -0
  263. package/dist/observer/shared/parsePort/index.js +15 -0
  264. package/dist/observer/shared/pickKanbanOverride/index.d.ts +10 -0
  265. package/dist/observer/shared/pickKanbanOverride/index.js +10 -0
  266. package/dist/observer/shared/pickReportedLocation/index.d.ts +13 -0
  267. package/dist/observer/shared/pickReportedLocation/index.js +18 -0
  268. package/dist/observer/shared/readHeldLiveness/index.d.ts +13 -0
  269. package/dist/observer/shared/readHeldLiveness/index.js +23 -0
  270. package/dist/observer/shared/routeTable/index.d.ts +131 -0
  271. package/dist/observer/shared/routeTable/index.js +31 -0
  272. package/dist/observer/shared/sendBody/index.d.ts +14 -0
  273. package/dist/observer/shared/sendBody/index.js +17 -0
  274. package/dist/observer/shared/sendJson/index.d.ts +12 -0
  275. package/dist/observer/shared/sendJson/index.js +15 -0
  276. package/dist/observer/shared/sendPage/index.d.ts +10 -0
  277. package/dist/observer/shared/sendPage/index.js +18 -0
  278. package/dist/observer/shared/shutdownRequest/index.d.ts +14 -0
  279. package/dist/observer/shared/shutdownRequest/index.js +7 -0
  280. package/dist/observer/shared/summarizeProjects/index.d.ts +14 -0
  281. package/dist/observer/shared/summarizeProjects/index.js +38 -0
  282. package/dist/observer/shared/summarizeSessions/index.d.ts +12 -0
  283. package/dist/observer/shared/summarizeSessions/index.js +30 -0
  284. package/dist/observer/shared/tokenFormat/index.d.ts +4 -0
  285. package/dist/observer/shared/tokenFormat/index.js +4 -0
  286. package/dist/observer/shared/wantsHtml/index.d.ts +8 -0
  287. package/dist/observer/shared/wantsHtml/index.js +10 -0
  288. package/dist/observer/takeOver/awaitExit/index.d.ts +10 -0
  289. package/dist/observer/takeOver/awaitExit/index.js +26 -0
  290. package/dist/observer/takeOver/index.d.ts +11 -0
  291. package/dist/observer/takeOver/index.js +27 -0
  292. package/dist/observer/takeOver/requestShutdown/index.d.ts +10 -0
  293. package/dist/observer/takeOver/requestShutdown/index.js +28 -0
  294. package/dist/observer/types/index.d.ts +214 -0
  295. package/dist/observer/types/index.js +1 -0
  296. package/dist/observer/writeRecord/index.d.ts +10 -0
  297. package/dist/observer/writeRecord/index.js +11 -0
  298. package/dist/service/brainContract/index.d.ts +113 -0
  299. package/dist/service/brainContract/index.js +107 -0
  300. package/dist/service/brainContract/launcherPurpose/index.d.ts +8 -0
  301. package/dist/service/brainContract/launcherPurpose/index.js +8 -0
  302. package/dist/service/brainContract/toMarkerPair/index.d.ts +11 -0
  303. package/dist/service/brainContract/toMarkerPair/index.js +12 -0
  304. package/dist/service/buildBrainState/classifyParseFailure/index.d.ts +17 -0
  305. package/dist/service/buildBrainState/classifyParseFailure/index.js +29 -0
  306. package/dist/service/buildBrainState/index.d.ts +84 -0
  307. package/dist/service/buildBrainState/index.js +177 -0
  308. package/dist/service/install/applySteps/index.d.ts +38 -0
  309. package/dist/service/install/applySteps/index.js +86 -0
  310. package/dist/service/install/configureIde/index.d.ts +25 -0
  311. package/dist/service/install/configureIde/index.js +143 -0
  312. package/dist/service/install/detectFramework/index.d.ts +11 -0
  313. package/dist/service/install/detectFramework/index.js +53 -0
  314. package/dist/service/install/index.d.ts +63 -0
  315. package/dist/service/install/index.js +138 -0
  316. package/dist/service/install/initContent/index.d.ts +158 -0
  317. package/dist/service/install/initContent/index.js +260 -0
  318. package/dist/service/install/installAgents/index.d.ts +16 -0
  319. package/dist/service/install/installAgents/index.js +55 -0
  320. package/dist/service/install/installAideTree/index.d.ts +15 -0
  321. package/dist/service/install/installAideTree/index.js +54 -0
  322. package/dist/service/install/installHooks/index.d.ts +24 -0
  323. package/dist/service/install/installHooks/index.js +68 -0
  324. package/dist/service/install/installMethodologyDocs/index.d.ts +16 -0
  325. package/dist/service/install/installMethodologyDocs/index.js +55 -0
  326. package/dist/service/install/installSkills/index.d.ts +16 -0
  327. package/dist/service/install/installSkills/index.js +55 -0
  328. package/dist/service/install/planSessionRecord/index.d.ts +16 -0
  329. package/dist/service/install/planSessionRecord/index.js +30 -0
  330. package/dist/service/install/provisionBrain/buildBrainAideStep/index.d.ts +25 -0
  331. package/dist/service/install/provisionBrain/buildBrainAideStep/index.js +60 -0
  332. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.d.ts +14 -0
  333. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/index.js +33 -0
  334. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.d.ts +10 -0
  335. package/dist/service/install/provisionBrain/buildBrainAideStep/summarizeBrainConfig/listBrainSections/index.js +19 -0
  336. package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.d.ts +17 -0
  337. package/dist/service/install/provisionBrain/detectBrainMigration/findLegacyLauncher/index.js +39 -0
  338. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.d.ts +11 -0
  339. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/fingerprintSection/index.js +20 -0
  340. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.d.ts +16 -0
  341. package/dist/service/install/provisionBrain/detectBrainMigration/findStaleSections/index.js +30 -0
  342. package/dist/service/install/provisionBrain/detectBrainMigration/index.d.ts +13 -0
  343. package/dist/service/install/provisionBrain/detectBrainMigration/index.js +32 -0
  344. package/dist/service/install/provisionBrain/index.d.ts +37 -0
  345. package/dist/service/install/provisionBrain/index.js +182 -0
  346. package/dist/service/install/provisionBrain/isTemplateIntegration/index.d.ts +14 -0
  347. package/dist/service/install/provisionBrain/isTemplateIntegration/index.js +24 -0
  348. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.d.ts +73 -0
  349. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/index.js +557 -0
  350. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.d.ts +13 -0
  351. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/complete/index.js +51 -0
  352. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.d.ts +13 -0
  353. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/create/index.js +82 -0
  354. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.d.ts +13 -0
  355. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/manage/index.js +86 -0
  356. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.d.ts +12 -0
  357. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/move/index.js +59 -0
  358. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.d.ts +15 -0
  359. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/review/index.js +274 -0
  360. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.d.ts +14 -0
  361. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/stash/index.js +103 -0
  362. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.d.ts +14 -0
  363. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/guide/work/index.js +332 -0
  364. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.d.ts +16 -0
  365. package/dist/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub/index.js +94 -0
  366. package/dist/service/install/provisionBrain/outdatedTemplateSections/index.d.ts +18 -0
  367. package/dist/service/install/provisionBrain/outdatedTemplateSections/index.js +164 -0
  368. package/dist/service/install/provisionBrain/parseBundledTemplate/index.d.ts +14 -0
  369. package/dist/service/install/provisionBrain/parseBundledTemplate/index.js +21 -0
  370. package/dist/service/install/provisionBrain/planBrainRepair/index.d.ts +26 -0
  371. package/dist/service/install/provisionBrain/planBrainRepair/index.js +47 -0
  372. package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.d.ts +15 -0
  373. package/dist/service/install/provisionBrain/readBrainMigrationNotice/index.js +26 -0
  374. package/dist/service/install/reference/index.d.ts +24 -0
  375. package/dist/service/install/reference/index.js +51 -0
  376. package/dist/service/install/resolveBrainHints/index.d.ts +17 -0
  377. package/dist/service/install/resolveBrainHints/index.js +44 -0
  378. package/dist/service/install/scaffoldCommands/index.d.ts +42 -0
  379. package/dist/service/install/scaffoldCommands/index.js +90 -0
  380. package/dist/service/install/scaffoldReadme/deriveProjectName/index.d.ts +18 -0
  381. package/dist/service/install/scaffoldReadme/deriveProjectName/index.js +37 -0
  382. package/dist/service/install/scaffoldReadme/index.d.ts +20 -0
  383. package/dist/service/install/scaffoldReadme/index.js +57 -0
  384. package/dist/service/install/scaffoldReadme/insertBadge/index.d.ts +17 -0
  385. package/dist/service/install/scaffoldReadme/insertBadge/index.js +51 -0
  386. package/dist/service/install/shared/aidePackage/index.d.ts +18 -0
  387. package/dist/service/install/shared/aidePackage/index.js +17 -0
  388. package/dist/service/install/shared/checkGlobalPackage/index.d.ts +11 -0
  389. package/dist/service/install/shared/checkGlobalPackage/index.js +28 -0
  390. package/dist/service/install/shared/compareBytes/index.d.ts +12 -0
  391. package/dist/service/install/shared/compareBytes/index.js +24 -0
  392. package/dist/service/install/shared/describeAideCommand/index.d.ts +10 -0
  393. package/dist/service/install/shared/describeAideCommand/index.js +13 -0
  394. package/dist/service/install/shared/detectLaunchMode/index.d.ts +11 -0
  395. package/dist/service/install/shared/detectLaunchMode/index.js +10 -0
  396. package/dist/service/install/shared/isOlderVersion/index.d.ts +7 -0
  397. package/dist/service/install/shared/isOlderVersion/index.js +19 -0
  398. package/dist/service/install/shared/normalizeLaunchedCommand/index.d.ts +16 -0
  399. package/dist/service/install/shared/normalizeLaunchedCommand/index.js +36 -0
  400. package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.d.ts +10 -0
  401. package/dist/service/install/shared/planHooks/ignoreLocal/appendLine/index.js +14 -0
  402. package/dist/service/install/shared/planHooks/ignoreLocal/index.d.ts +13 -0
  403. package/dist/service/install/shared/planHooks/ignoreLocal/index.js +30 -0
  404. package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.d.ts +17 -0
  405. package/dist/service/install/shared/planHooks/ignoreLocal/inspectGit/index.js +42 -0
  406. package/dist/service/install/shared/planHooks/index.d.ts +19 -0
  407. package/dist/service/install/shared/planHooks/index.js +65 -0
  408. package/dist/service/install/shared/planHooks/locateEntry/index.d.ts +15 -0
  409. package/dist/service/install/shared/planHooks/locateEntry/index.js +40 -0
  410. package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.d.ts +11 -0
  411. package/dist/service/install/shared/planHooks/mergeLocal/aideHookEntries/index.js +21 -0
  412. package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.d.ts +7 -0
  413. package/dist/service/install/shared/planHooks/mergeLocal/buildCommand/index.js +9 -0
  414. package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.d.ts +16 -0
  415. package/dist/service/install/shared/planHooks/mergeLocal/findWiredEvents/index.js +35 -0
  416. package/dist/service/install/shared/planHooks/mergeLocal/index.d.ts +17 -0
  417. package/dist/service/install/shared/planHooks/mergeLocal/index.js +57 -0
  418. package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.d.ts +10 -0
  419. package/dist/service/install/shared/planHooks/shared/isAideHookCommand/index.js +86 -0
  420. package/dist/service/install/shared/planHooks/shared/parseSettings/index.d.ts +10 -0
  421. package/dist/service/install/shared/planHooks/shared/parseSettings/index.js +24 -0
  422. package/dist/service/install/shared/planHooks/shared/readOptional/index.d.ts +7 -0
  423. package/dist/service/install/shared/planHooks/shared/readOptional/index.js +17 -0
  424. package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.d.ts +17 -0
  425. package/dist/service/install/shared/planHooks/shared/removeAideHooks/index.js +84 -0
  426. package/dist/service/install/shared/planHooks/stripProject/index.d.ts +14 -0
  427. package/dist/service/install/shared/planHooks/stripProject/index.js +26 -0
  428. package/dist/service/install/shared/planInstallInstruction/index.d.ts +3 -0
  429. package/dist/service/install/shared/planInstallInstruction/index.js +6 -0
  430. package/dist/service/install/shared/readNpxPackageSpec/index.d.ts +11 -0
  431. package/dist/service/install/shared/readNpxPackageSpec/index.js +35 -0
  432. package/dist/service/install/wireMcp/index.d.ts +28 -0
  433. package/dist/service/install/wireMcp/index.js +89 -0
  434. package/dist/service/install/writeMethodology/index.d.ts +22 -0
  435. package/dist/service/install/writeMethodology/index.js +131 -0
  436. package/dist/service/observer/event/archive/index.d.ts +14 -0
  437. package/dist/service/observer/event/archive/index.js +52 -0
  438. package/dist/service/observer/event/delete/index.d.ts +20 -0
  439. package/dist/service/observer/event/delete/index.js +60 -0
  440. package/dist/service/observer/event/endSession/index.d.ts +19 -0
  441. package/dist/service/observer/event/endSession/index.js +85 -0
  442. package/dist/service/observer/event/findConversation/index.d.ts +16 -0
  443. package/dist/service/observer/event/findConversation/index.js +46 -0
  444. package/dist/service/observer/event/markClosed/index.d.ts +15 -0
  445. package/dist/service/observer/event/markClosed/index.js +39 -0
  446. package/dist/service/observer/event/read/index.d.ts +11 -0
  447. package/dist/service/observer/event/read/index.js +18 -0
  448. package/dist/service/observer/event/read/readProject/index.d.ts +14 -0
  449. package/dist/service/observer/event/read/readProject/index.js +52 -0
  450. package/dist/service/observer/event/readArchive/index.d.ts +9 -0
  451. package/dist/service/observer/event/readArchive/index.js +46 -0
  452. package/dist/service/observer/event/readConversations/index.d.ts +10 -0
  453. package/dist/service/observer/event/readConversations/index.js +12 -0
  454. package/dist/service/observer/event/readLiveness/index.d.ts +24 -0
  455. package/dist/service/observer/event/readLiveness/index.js +40 -0
  456. package/dist/service/observer/event/record/appendLine/index.d.ts +17 -0
  457. package/dist/service/observer/event/record/appendLine/index.js +25 -0
  458. package/dist/service/observer/event/record/index.d.ts +19 -0
  459. package/dist/service/observer/event/record/index.js +62 -0
  460. package/dist/service/observer/event/record/postToObserver/index.d.ts +15 -0
  461. package/dist/service/observer/event/record/postToObserver/index.js +39 -0
  462. package/dist/service/observer/event/record/readPreviouslyEnded/index.d.ts +11 -0
  463. package/dist/service/observer/event/record/readPreviouslyEnded/index.js +25 -0
  464. package/dist/service/observer/event/record/session/createSession/index.d.ts +3 -0
  465. package/dist/service/observer/event/record/session/createSession/index.js +18 -0
  466. package/dist/service/observer/event/record/session/createSessionId/index.d.ts +9 -0
  467. package/dist/service/observer/event/record/session/createSessionId/index.js +11 -0
  468. package/dist/service/observer/event/record/session/index.d.ts +8 -0
  469. package/dist/service/observer/event/record/session/index.js +14 -0
  470. package/dist/service/observer/event/reopen/index.d.ts +13 -0
  471. package/dist/service/observer/event/reopen/index.js +34 -0
  472. package/dist/service/observer/event/restore/index.d.ts +12 -0
  473. package/dist/service/observer/event/restore/index.js +48 -0
  474. package/dist/service/observer/event/shared/attachLiveness/index.d.ts +14 -0
  475. package/dist/service/observer/event/shared/attachLiveness/index.js +18 -0
  476. package/dist/service/observer/event/shared/buildSessionPath/index.d.ts +11 -0
  477. package/dist/service/observer/event/shared/buildSessionPath/index.js +13 -0
  478. package/dist/service/observer/event/shared/endedMark/index.d.ts +30 -0
  479. package/dist/service/observer/event/shared/endedMark/index.js +48 -0
  480. package/dist/service/observer/event/shared/findNewestStart/index.d.ts +13 -0
  481. package/dist/service/observer/event/shared/findNewestStart/index.js +19 -0
  482. package/dist/service/observer/event/shared/formatSessionTag/index.d.ts +8 -0
  483. package/dist/service/observer/event/shared/formatSessionTag/index.js +11 -0
  484. package/dist/service/observer/event/shared/groupConversations/index.d.ts +14 -0
  485. package/dist/service/observer/event/shared/groupConversations/index.js +44 -0
  486. package/dist/service/observer/event/shared/isClosedRecord/index.d.ts +8 -0
  487. package/dist/service/observer/event/shared/isClosedRecord/index.js +13 -0
  488. package/dist/service/observer/event/shared/isIsoDateTime/index.d.ts +7 -0
  489. package/dist/service/observer/event/shared/isIsoDateTime/index.js +18 -0
  490. package/dist/service/observer/event/shared/judgeConversation/index.d.ts +18 -0
  491. package/dist/service/observer/event/shared/judgeConversation/index.js +26 -0
  492. package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.d.ts +10 -0
  493. package/dist/service/observer/event/shared/judgeConversation/pickNewestPresence/index.js +9 -0
  494. package/dist/service/observer/event/shared/judgeLiveness/index.d.ts +24 -0
  495. package/dist/service/observer/event/shared/judgeLiveness/index.js +41 -0
  496. package/dist/service/observer/event/shared/limits/index.d.ts +15 -0
  497. package/dist/service/observer/event/shared/limits/index.js +15 -0
  498. package/dist/service/observer/event/shared/listSessionIds/index.d.ts +9 -0
  499. package/dist/service/observer/event/shared/listSessionIds/index.js +33 -0
  500. package/dist/service/observer/event/shared/observerRecord/index.d.ts +23 -0
  501. package/dist/service/observer/event/shared/observerRecord/index.js +29 -0
  502. package/dist/service/observer/event/shared/parseSessionTag/index.d.ts +8 -0
  503. package/dist/service/observer/event/shared/parseSessionTag/index.js +18 -0
  504. package/dist/service/observer/event/shared/presencePing/index.d.ts +15 -0
  505. package/dist/service/observer/event/shared/presencePing/index.js +13 -0
  506. package/dist/service/observer/event/shared/presenceRecord/index.d.ts +36 -0
  507. package/dist/service/observer/event/shared/presenceRecord/index.js +70 -0
  508. package/dist/service/observer/event/shared/protocol/index.d.ts +31 -0
  509. package/dist/service/observer/event/shared/protocol/index.js +30 -0
  510. package/dist/service/observer/event/shared/readClosingRecord/index.d.ts +15 -0
  511. package/dist/service/observer/event/shared/readClosingRecord/index.js +50 -0
  512. package/dist/service/observer/event/shared/readConversationMark/index.d.ts +13 -0
  513. package/dist/service/observer/event/shared/readConversationMark/index.js +14 -0
  514. package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.d.ts +10 -0
  515. package/dist/service/observer/event/shared/readConversationMark/pickDecidingMark/index.js +10 -0
  516. package/dist/service/observer/event/shared/readEndedMark/index.d.ts +9 -0
  517. package/dist/service/observer/event/shared/readEndedMark/index.js +24 -0
  518. package/dist/service/observer/event/shared/readObserverRecord/index.d.ts +11 -0
  519. package/dist/service/observer/event/shared/readObserverRecord/index.js +26 -0
  520. package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.d.ts +2 -0
  521. package/dist/service/observer/event/shared/readObserverRecord/parseJson/index.js +9 -0
  522. package/dist/service/observer/event/shared/readPresence/index.d.ts +11 -0
  523. package/dist/service/observer/event/shared/readPresence/index.js +46 -0
  524. package/dist/service/observer/event/shared/readSessionLog/index.d.ts +13 -0
  525. package/dist/service/observer/event/shared/readSessionLog/index.js +29 -0
  526. package/dist/service/observer/event/shared/readSessionLog/parseLines/index.d.ts +14 -0
  527. package/dist/service/observer/event/shared/readSessionLog/parseLines/index.js +32 -0
  528. package/dist/service/observer/event/shared/readSessionStart/index.d.ts +8 -0
  529. package/dist/service/observer/event/shared/readSessionStart/index.js +20 -0
  530. package/dist/service/observer/event/shared/readTranscriptActivity/index.d.ts +9 -0
  531. package/dist/service/observer/event/shared/readTranscriptActivity/index.js +18 -0
  532. package/dist/service/observer/event/shared/schema/index.d.ts +1398 -0
  533. package/dist/service/observer/event/shared/schema/index.js +218 -0
  534. package/dist/service/observer/event/shared/writeEndedMark/index.d.ts +12 -0
  535. package/dist/service/observer/event/shared/writeEndedMark/index.js +26 -0
  536. package/dist/service/observer/event/touchPresence/index.d.ts +15 -0
  537. package/dist/service/observer/event/touchPresence/index.js +77 -0
  538. package/dist/service/observer/event/touchPresence/mergePresence/index.d.ts +19 -0
  539. package/dist/service/observer/event/touchPresence/mergePresence/index.js +50 -0
  540. package/dist/service/observer/event/touchPresence/pingObserver/index.d.ts +15 -0
  541. package/dist/service/observer/event/touchPresence/pingObserver/index.js +63 -0
  542. package/dist/service/observer/event/touchPresence/shouldRefresh/index.d.ts +17 -0
  543. package/dist/service/observer/event/touchPresence/shouldRefresh/index.js +25 -0
  544. package/dist/service/observer/event/touchPresence/writePresence/index.d.ts +12 -0
  545. package/dist/service/observer/event/touchPresence/writePresence/index.js +20 -0
  546. package/dist/service/observer/event/types/index.d.ts +217 -0
  547. package/dist/service/observer/event/types/index.js +1 -0
  548. package/dist/service/observer/kanban/board/read/index.d.ts +13 -0
  549. package/dist/service/observer/kanban/board/read/index.js +27 -0
  550. package/dist/service/observer/kanban/board/read/readColumn/index.d.ts +11 -0
  551. package/dist/service/observer/kanban/board/read/readColumn/index.js +67 -0
  552. package/dist/service/observer/kanban/shared/boardHints/index.d.ts +17 -0
  553. package/dist/service/observer/kanban/shared/boardHints/index.js +17 -0
  554. package/dist/service/observer/kanban/shared/boardUnavailable/index.d.ts +6 -0
  555. package/dist/service/observer/kanban/shared/boardUnavailable/index.js +8 -0
  556. package/dist/service/observer/kanban/shared/columns/index.d.ts +18 -0
  557. package/dist/service/observer/kanban/shared/columns/index.js +9 -0
  558. package/dist/service/observer/kanban/shared/isInsideFolder/index.d.ts +8 -0
  559. package/dist/service/observer/kanban/shared/isInsideFolder/index.js +25 -0
  560. package/dist/service/observer/kanban/shared/locateBoard/index.d.ts +25 -0
  561. package/dist/service/observer/kanban/shared/locateBoard/index.js +76 -0
  562. package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.d.ts +13 -0
  563. package/dist/service/observer/kanban/shared/locateBoard/readKanbanFolder/index.js +39 -0
  564. package/dist/service/observer/kanban/shared/namesSlug/index.d.ts +8 -0
  565. package/dist/service/observer/kanban/shared/namesSlug/index.js +13 -0
  566. package/dist/service/observer/kanban/shared/parseTaskNote/index.d.ts +11 -0
  567. package/dist/service/observer/kanban/shared/parseTaskNote/index.js +63 -0
  568. package/dist/service/observer/kanban/shared/readSessionKanban/index.d.ts +7 -0
  569. package/dist/service/observer/kanban/shared/readSessionKanban/index.js +22 -0
  570. package/dist/service/observer/kanban/task/read/findTaskFile/index.d.ts +22 -0
  571. package/dist/service/observer/kanban/task/read/findTaskFile/index.js +34 -0
  572. package/dist/service/observer/kanban/task/read/index.d.ts +13 -0
  573. package/dist/service/observer/kanban/task/read/index.js +42 -0
  574. package/dist/service/observer/kanban/types/index.d.ts +95 -0
  575. package/dist/service/observer/kanban/types/index.js +1 -0
  576. package/dist/service/observer/status/buildHistory/formatDuration/index.d.ts +6 -0
  577. package/dist/service/observer/status/buildHistory/formatDuration/index.js +15 -0
  578. package/dist/service/observer/status/buildHistory/index.d.ts +10 -0
  579. package/dist/service/observer/status/buildHistory/index.js +68 -0
  580. package/dist/service/observer/status/buildHistory/labelEvent/index.d.ts +12 -0
  581. package/dist/service/observer/status/buildHistory/labelEvent/index.js +78 -0
  582. package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.d.ts +8 -0
  583. package/dist/service/observer/status/buildModuleNodes/classifyTreeFile/index.js +25 -0
  584. package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.d.ts +9 -0
  585. package/dist/service/observer/status/buildModuleNodes/findParentFolder/index.js +20 -0
  586. package/dist/service/observer/status/buildModuleNodes/index.d.ts +9 -0
  587. package/dist/service/observer/status/buildModuleNodes/index.js +49 -0
  588. package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.d.ts +10 -0
  589. package/dist/service/observer/status/buildModuleNodes/readTreeFile/countPlanSteps/index.js +38 -0
  590. package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.d.ts +12 -0
  591. package/dist/service/observer/status/buildModuleNodes/readTreeFile/index.js +73 -0
  592. package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.d.ts +11 -0
  593. package/dist/service/observer/status/buildModuleNodes/readTreeFile/workStatuses/index.js +7 -0
  594. package/dist/service/observer/status/buildRails/collectPipelineEvents/index.d.ts +15 -0
  595. package/dist/service/observer/status/buildRails/collectPipelineEvents/index.js +44 -0
  596. package/dist/service/observer/status/buildRails/index.d.ts +18 -0
  597. package/dist/service/observer/status/buildRails/index.js +62 -0
  598. package/dist/service/observer/status/buildRails/isOutside/index.d.ts +11 -0
  599. package/dist/service/observer/status/buildRails/isOutside/index.js +13 -0
  600. package/dist/service/observer/status/buildRails/judgeStage/index.d.ts +18 -0
  601. package/dist/service/observer/status/buildRails/judgeStage/index.js +40 -0
  602. package/dist/service/observer/status/findRunningWork/index.d.ts +18 -0
  603. package/dist/service/observer/status/findRunningWork/index.js +73 -0
  604. package/dist/service/observer/status/findWaitingFiles/index.d.ts +15 -0
  605. package/dist/service/observer/status/findWaitingFiles/index.js +80 -0
  606. package/dist/service/observer/status/foldSessions/index.d.ts +12 -0
  607. package/dist/service/observer/status/foldSessions/index.js +54 -0
  608. package/dist/service/observer/status/index.d.ts +14 -0
  609. package/dist/service/observer/status/index.js +84 -0
  610. package/dist/service/observer/status/listWorkFiles/index.d.ts +8 -0
  611. package/dist/service/observer/status/listWorkFiles/index.js +18 -0
  612. package/dist/service/observer/status/readSessionRecord/index.d.ts +9 -0
  613. package/dist/service/observer/status/readSessionRecord/index.js +58 -0
  614. package/dist/service/observer/status/shared/findCurrentPipeline/index.d.ts +18 -0
  615. package/dist/service/observer/status/shared/findCurrentPipeline/index.js +29 -0
  616. package/dist/service/observer/status/shared/findOpenPhase/index.d.ts +24 -0
  617. package/dist/service/observer/status/shared/findOpenPhase/index.js +47 -0
  618. package/dist/service/observer/status/shared/normalizeProjectPath/index.d.ts +10 -0
  619. package/dist/service/observer/status/shared/normalizeProjectPath/index.js +17 -0
  620. package/dist/service/observer/status/shared/phaseLabels/index.d.ts +19 -0
  621. package/dist/service/observer/status/shared/phaseLabels/index.js +19 -0
  622. package/dist/service/observer/status/shared/toNodeFolder/index.d.ts +6 -0
  623. package/dist/service/observer/status/shared/toNodeFolder/index.js +13 -0
  624. package/dist/service/observer/status/types/index.d.ts +240 -0
  625. package/dist/service/observer/status/types/index.js +1 -0
  626. package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.d.ts +15 -0
  627. package/dist/service/parseBrainAide/extractMarkerSections/findStructuralFault/index.js +58 -0
  628. package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.d.ts +17 -0
  629. package/dist/service/parseBrainAide/extractMarkerSections/findUnknownMarker/index.js +52 -0
  630. package/dist/service/parseBrainAide/extractMarkerSections/index.d.ts +18 -0
  631. package/dist/service/parseBrainAide/extractMarkerSections/index.js +35 -0
  632. package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.d.ts +9 -0
  633. package/dist/service/parseBrainAide/extractMarkerSections/locateMarkers/index.js +30 -0
  634. package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.d.ts +18 -0
  635. package/dist/service/parseBrainAide/extractMarkerSections/slicePresentSections/index.js +24 -0
  636. package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.d.ts +12 -0
  637. package/dist/service/parseBrainAide/extractMarkerSections/sliceSections/index.js +19 -0
  638. package/dist/service/parseBrainAide/index.d.ts +113 -0
  639. package/dist/service/parseBrainAide/index.js +248 -0
  640. package/dist/service/parseBrainAide/parseKanbanField/index.d.ts +21 -0
  641. package/dist/service/parseBrainAide/parseKanbanField/index.js +56 -0
  642. package/dist/startServer/index.d.ts +7 -0
  643. package/dist/startServer/index.js +459 -0
  644. package/dist/tools/brain/composeOutdatedRemediation/index.d.ts +12 -0
  645. package/dist/tools/brain/composeOutdatedRemediation/index.js +24 -0
  646. package/dist/tools/brain/index.d.ts +94 -0
  647. package/dist/tools/brain/index.js +113 -0
  648. package/dist/tools/brain/listContract/index.d.ts +10 -0
  649. package/dist/tools/brain/listContract/index.js +14 -0
  650. package/dist/tools/brain/readTemplateSection/index.d.ts +17 -0
  651. package/dist/tools/brain/readTemplateSection/index.js +26 -0
  652. package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.d.ts +11 -0
  653. package/dist/tools/brain/readTemplateSection/readTemplateLauncher/index.js +22 -0
  654. package/dist/tools/brain/sectionPurpose/index.d.ts +10 -0
  655. package/dist/tools/brain/sectionPurpose/index.js +15 -0
  656. package/dist/tools/brain/selectSection/index.d.ts +14 -0
  657. package/dist/tools/brain/selectSection/index.js +19 -0
  658. package/dist/tools/brain/validateDraft/composeDraftVerdict/index.d.ts +11 -0
  659. package/dist/tools/brain/validateDraft/composeDraftVerdict/index.js +22 -0
  660. package/dist/tools/brain/validateDraft/index.d.ts +13 -0
  661. package/dist/tools/brain/validateDraft/index.js +43 -0
  662. package/dist/tools/brain/validateDraft/readDraft/index.d.ts +19 -0
  663. package/dist/tools/brain/validateDraft/readDraft/index.js +19 -0
  664. package/dist/tools/brain/validateDraft/resolveDraftPath/index.d.ts +21 -0
  665. package/dist/tools/brain/validateDraft/resolveDraftPath/index.js +34 -0
  666. package/dist/tools/cleanup/checkPreconditions/index.d.ts +20 -0
  667. package/dist/tools/cleanup/checkPreconditions/index.js +94 -0
  668. package/dist/tools/cleanup/formatReport/index.d.ts +12 -0
  669. package/dist/tools/cleanup/formatReport/index.js +94 -0
  670. package/dist/tools/cleanup/index.d.ts +25 -0
  671. package/dist/tools/cleanup/index.js +53 -0
  672. package/dist/tools/cleanup/judgeEphemeral/index.d.ts +37 -0
  673. package/dist/tools/cleanup/judgeEphemeral/index.js +47 -0
  674. package/dist/tools/cleanup/locateEphemerals/index.d.ts +16 -0
  675. package/dist/tools/cleanup/locateEphemerals/index.js +27 -0
  676. package/dist/tools/cleanup/removeEphemerals/index.d.ts +19 -0
  677. package/dist/tools/cleanup/removeEphemerals/index.js +27 -0
  678. package/dist/tools/cleanup/resolveModule/index.d.ts +20 -0
  679. package/dist/tools/cleanup/resolveModule/index.js +35 -0
  680. package/dist/tools/discover/buildAncestorChain/index.d.ts +22 -0
  681. package/dist/tools/discover/buildAncestorChain/index.js +108 -0
  682. package/dist/tools/discover/buildTree/index.d.ts +10 -0
  683. package/dist/tools/discover/buildTree/index.js +64 -0
  684. package/dist/tools/discover/index.d.ts +21 -0
  685. package/dist/tools/discover/index.js +50 -0
  686. package/dist/tools/frontmatter/checkCompletion/index.d.ts +13 -0
  687. package/dist/tools/frontmatter/checkCompletion/index.js +51 -0
  688. package/dist/tools/frontmatter/checkTransition/index.d.ts +21 -0
  689. package/dist/tools/frontmatter/checkTransition/index.js +34 -0
  690. package/dist/tools/frontmatter/classifyAideFile/index.d.ts +8 -0
  691. package/dist/tools/frontmatter/classifyAideFile/index.js +25 -0
  692. package/dist/tools/frontmatter/formatResult/index.d.ts +11 -0
  693. package/dist/tools/frontmatter/formatResult/index.js +104 -0
  694. package/dist/tools/frontmatter/governedFields/index.d.ts +31 -0
  695. package/dist/tools/frontmatter/governedFields/index.js +31 -0
  696. package/dist/tools/frontmatter/index.d.ts +27 -0
  697. package/dist/tools/frontmatter/index.js +163 -0
  698. package/dist/tools/frontmatter/readGovernedValue/index.d.ts +16 -0
  699. package/dist/tools/frontmatter/readGovernedValue/index.js +159 -0
  700. package/dist/tools/frontmatter/resolveTarget/index.d.ts +23 -0
  701. package/dist/tools/frontmatter/resolveTarget/index.js +30 -0
  702. package/dist/tools/frontmatter/rewriteFieldLine/index.d.ts +18 -0
  703. package/dist/tools/frontmatter/rewriteFieldLine/index.js +16 -0
  704. package/dist/tools/frontmatter/types/index.d.ts +134 -0
  705. package/dist/tools/frontmatter/types/index.js +1 -0
  706. package/dist/tools/info/index.d.ts +40 -0
  707. package/dist/tools/info/index.js +60 -0
  708. package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.d.ts +10 -0
  709. package/dist/tools/info/resolveBehind/fetchPublishedVersions/index.js +34 -0
  710. package/dist/tools/info/resolveBehind/index.d.ts +12 -0
  711. package/dist/tools/info/resolveBehind/index.js +44 -0
  712. package/dist/tools/info/resolveBehind/listSkippedVersions/index.d.ts +7 -0
  713. package/dist/tools/info/resolveBehind/listSkippedVersions/index.js +21 -0
  714. package/dist/tools/info/resolveBehind/readAideLaunchMode/index.d.ts +8 -0
  715. package/dist/tools/info/resolveBehind/readAideLaunchMode/index.js +24 -0
  716. package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.d.ts +9 -0
  717. package/dist/tools/info/resolveBehind/resolveHighlights/fetchChangelog/index.js +23 -0
  718. package/dist/tools/info/resolveBehind/resolveHighlights/index.d.ts +7 -0
  719. package/dist/tools/info/resolveBehind/resolveHighlights/index.js +16 -0
  720. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.d.ts +7 -0
  721. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/index.js +21 -0
  722. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.d.ts +9 -0
  723. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/readReleaseBullets/index.js +50 -0
  724. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.d.ts +6 -0
  725. package/dist/tools/info/resolveBehind/resolveHighlights/pickHighlights/toOneLine/index.js +24 -0
  726. package/dist/tools/info/resolveOutdated/detectStaleHooks/index.d.ts +17 -0
  727. package/dist/tools/info/resolveOutdated/detectStaleHooks/index.js +28 -0
  728. package/dist/tools/info/resolveOutdated/index.d.ts +13 -0
  729. package/dist/tools/info/resolveOutdated/index.js +18 -0
  730. package/dist/tools/info/resolveOutdated/listStaleFiles/index.d.ts +7 -0
  731. package/dist/tools/info/resolveOutdated/listStaleFiles/index.js +30 -0
  732. package/dist/tools/inspect/index.d.ts +24 -0
  733. package/dist/tools/inspect/index.js +47 -0
  734. package/dist/tools/inspect/parseSymbols/index.d.ts +21 -0
  735. package/dist/tools/inspect/parseSymbols/index.js +213 -0
  736. package/dist/tools/inspect/walk/index.d.ts +8 -0
  737. package/dist/tools/inspect/walk/index.js +31 -0
  738. package/dist/tools/observer/endSession/formatReply/index.d.ts +9 -0
  739. package/dist/tools/observer/endSession/formatReply/index.js +23 -0
  740. package/dist/tools/observer/endSession/index.d.ts +21 -0
  741. package/dist/tools/observer/endSession/index.js +31 -0
  742. package/dist/tools/observer/endSession/types/index.d.ts +10 -0
  743. package/dist/tools/observer/endSession/types/index.js +1 -0
  744. package/dist/tools/observer/event/formatReply/index.d.ts +10 -0
  745. package/dist/tools/observer/event/formatReply/index.js +28 -0
  746. package/dist/tools/observer/event/index.d.ts +9 -0
  747. package/dist/tools/observer/event/index.js +11 -0
  748. package/dist/tools/observer/shared/tryBind/index.d.ts +13 -0
  749. package/dist/tools/observer/shared/tryBind/index.js +31 -0
  750. package/dist/tools/observer/start/awaitObserver/index.d.ts +16 -0
  751. package/dist/tools/observer/start/awaitObserver/index.js +75 -0
  752. package/dist/tools/observer/start/awaitOwnLink/index.d.ts +12 -0
  753. package/dist/tools/observer/start/awaitOwnLink/index.js +24 -0
  754. package/dist/tools/observer/start/checkProject/index.d.ts +18 -0
  755. package/dist/tools/observer/start/checkProject/index.js +45 -0
  756. package/dist/tools/observer/start/findOpenSessions/index.d.ts +18 -0
  757. package/dist/tools/observer/start/findOpenSessions/index.js +53 -0
  758. package/dist/tools/observer/start/formatReply/describeOpenSession/index.d.ts +7 -0
  759. package/dist/tools/observer/start/formatReply/describeOpenSession/index.js +13 -0
  760. package/dist/tools/observer/start/formatReply/index.d.ts +6 -0
  761. package/dist/tools/observer/start/formatReply/index.js +43 -0
  762. package/dist/tools/observer/start/index.d.ts +27 -0
  763. package/dist/tools/observer/start/index.js +87 -0
  764. package/dist/tools/observer/start/launchObserver/index.d.ts +17 -0
  765. package/dist/tools/observer/start/launchObserver/index.js +23 -0
  766. package/dist/tools/observer/start/markClosedSessions/index.d.ts +16 -0
  767. package/dist/tools/observer/start/markClosedSessions/index.js +49 -0
  768. package/dist/tools/observer/start/moveLegacyHistory/index.d.ts +10 -0
  769. package/dist/tools/observer/start/moveLegacyHistory/index.js +26 -0
  770. package/dist/tools/observer/start/types/index.d.ts +82 -0
  771. package/dist/tools/observer/start/types/index.js +1 -0
  772. package/dist/tools/observer/start/walkPorts/index.d.ts +15 -0
  773. package/dist/tools/observer/start/walkPorts/index.js +17 -0
  774. package/dist/tools/read/index.d.ts +15 -0
  775. package/dist/tools/read/index.js +79 -0
  776. package/dist/tools/scaffold/hasIntentSpec/index.d.ts +7 -0
  777. package/dist/tools/scaffold/hasIntentSpec/index.js +9 -0
  778. package/dist/tools/scaffold/index.d.ts +33 -0
  779. package/dist/tools/scaffold/index.js +216 -0
  780. package/dist/tools/scaffold/placeRootIntent/index.d.ts +17 -0
  781. package/dist/tools/scaffold/placeRootIntent/index.js +24 -0
  782. package/dist/tools/scaffold/resolveSpecFolder/index.d.ts +17 -0
  783. package/dist/tools/scaffold/resolveSpecFolder/index.js +21 -0
  784. package/dist/tools/scaffold/sessionTemplate/index.d.ts +9 -0
  785. package/dist/tools/scaffold/sessionTemplate/index.js +40 -0
  786. package/dist/tools/scaffold/writeIfAbsent/index.d.ts +10 -0
  787. package/dist/tools/scaffold/writeIfAbsent/index.js +21 -0
  788. package/dist/tools/upgrade/applyFiles/index.d.ts +49 -0
  789. package/dist/tools/upgrade/applyFiles/index.js +91 -0
  790. package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.d.ts +11 -0
  791. package/dist/tools/upgrade/applyFiles/movePin/changesOnlyThePin/index.js +23 -0
  792. package/dist/tools/upgrade/applyFiles/movePin/index.d.ts +14 -0
  793. package/dist/tools/upgrade/applyFiles/movePin/index.js +56 -0
  794. package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.d.ts +16 -0
  795. package/dist/tools/upgrade/applyFiles/movePin/locatePinToken/index.js +30 -0
  796. package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.d.ts +12 -0
  797. package/dist/tools/upgrade/applyFiles/switchToGlobal/changesOnlyTheLaunch/index.js +27 -0
  798. package/dist/tools/upgrade/applyFiles/switchToGlobal/index.d.ts +16 -0
  799. package/dist/tools/upgrade/applyFiles/switchToGlobal/index.js +78 -0
  800. package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.d.ts +21 -0
  801. package/dist/tools/upgrade/applyFiles/switchToGlobal/locateLaunchTokens/index.js +36 -0
  802. package/dist/tools/upgrade/brainCategory/applyChange/index.d.ts +21 -0
  803. package/dist/tools/upgrade/brainCategory/applyChange/index.js +64 -0
  804. package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.d.ts +12 -0
  805. package/dist/tools/upgrade/brainCategory/applyChange/yieldsExpectedConfig/index.js +25 -0
  806. package/dist/tools/upgrade/brainCategory/index.d.ts +19 -0
  807. package/dist/tools/upgrade/brainCategory/index.js +28 -0
  808. package/dist/tools/upgrade/brainCategory/insertMissingSections/index.d.ts +15 -0
  809. package/dist/tools/upgrade/brainCategory/insertMissingSections/index.js +62 -0
  810. package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.d.ts +25 -0
  811. package/dist/tools/upgrade/brainCategory/insertMissingSections/spliceRepairs/index.js +36 -0
  812. package/dist/tools/upgrade/brainCategory/previewChange/index.d.ts +16 -0
  813. package/dist/tools/upgrade/brainCategory/previewChange/index.js +61 -0
  814. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.d.ts +20 -0
  815. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/index.js +54 -0
  816. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.d.ts +19 -0
  817. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/index.js +61 -0
  818. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.d.ts +11 -0
  819. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/locateArgLines/index.js +49 -0
  820. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.d.ts +6 -0
  821. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherArgs/renderArgLine/index.js +8 -0
  822. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.d.ts +13 -0
  823. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildLauncherOffer/rewriteLauncherCommand/index.js +27 -0
  824. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.d.ts +19 -0
  825. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/buildSectionOffer/index.js +58 -0
  826. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.d.ts +13 -0
  827. package/dist/tools/upgrade/brainCategory/shared/buildChangeOffer/index.js +19 -0
  828. package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.d.ts +3 -0
  829. package/dist/tools/upgrade/brainCategory/shared/changedSinceDiff/index.js +4 -0
  830. package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.d.ts +6 -0
  831. package/dist/tools/upgrade/brainCategory/shared/detectLineEnding/index.js +9 -0
  832. package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.d.ts +7 -0
  833. package/dist/tools/upgrade/brainCategory/shared/hashBytes/index.js +10 -0
  834. package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.d.ts +5 -0
  835. package/dist/tools/upgrade/brainCategory/shared/invalidResultInstructions/index.js +7 -0
  836. package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.d.ts +19 -0
  837. package/dist/tools/upgrade/brainCategory/shared/locateFrontmatter/index.js +27 -0
  838. package/dist/tools/upgrade/brainCategory/shared/locateSection/index.d.ts +16 -0
  839. package/dist/tools/upgrade/brainCategory/shared/locateSection/index.js +19 -0
  840. package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.d.ts +12 -0
  841. package/dist/tools/upgrade/brainCategory/shared/readBrainConfig/index.js +22 -0
  842. package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.d.ts +13 -0
  843. package/dist/tools/upgrade/brainCategory/shared/readChangeBefore/index.js +17 -0
  844. package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.d.ts +13 -0
  845. package/dist/tools/upgrade/brainCategory/shared/refuseUnusableConfig/index.js +30 -0
  846. package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.d.ts +9 -0
  847. package/dist/tools/upgrade/brainCategory/shared/toLineEnding/index.js +8 -0
  848. package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.d.ts +14 -0
  849. package/dist/tools/upgrade/buildVersionsMeta/assertFullClone/index.js +27 -0
  850. package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.d.ts +23 -0
  851. package/dist/tools/upgrade/buildVersionsMeta/enumerateArtifacts/index.js +62 -0
  852. package/dist/tools/upgrade/buildVersionsMeta/index.d.ts +17 -0
  853. package/dist/tools/upgrade/buildVersionsMeta/index.js +26 -0
  854. package/dist/tools/upgrade/checkBrainConfig/index.d.ts +29 -0
  855. package/dist/tools/upgrade/checkBrainConfig/index.js +67 -0
  856. package/dist/tools/upgrade/checkHooksConfig/index.d.ts +30 -0
  857. package/dist/tools/upgrade/checkHooksConfig/index.js +72 -0
  858. package/dist/tools/upgrade/checkIdeConfig/index.d.ts +24 -0
  859. package/dist/tools/upgrade/checkIdeConfig/index.js +134 -0
  860. package/dist/tools/upgrade/checkMcpConfig/index.d.ts +37 -0
  861. package/dist/tools/upgrade/checkMcpConfig/index.js +172 -0
  862. package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.d.ts +10 -0
  863. package/dist/tools/upgrade/checkMcpConfig/isCanonicalGlobalAideEntry/index.js +17 -0
  864. package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.d.ts +9 -0
  865. package/dist/tools/upgrade/checkMcpConfig/isPinBehind/index.js +18 -0
  866. package/dist/tools/upgrade/checkReference/index.d.ts +12 -0
  867. package/dist/tools/upgrade/checkReference/index.js +28 -0
  868. package/dist/tools/upgrade/compareFile/index.d.ts +12 -0
  869. package/dist/tools/upgrade/compareFile/index.js +24 -0
  870. package/dist/tools/upgrade/index.d.ts +51 -0
  871. package/dist/tools/upgrade/index.js +216 -0
  872. package/dist/tools/upgrade/resolveProjectRoot/index.d.ts +7 -0
  873. package/dist/tools/upgrade/resolveProjectRoot/index.js +12 -0
  874. package/dist/tools/upgrade/shared/readAidePin/index.d.ts +9 -0
  875. package/dist/tools/upgrade/shared/readAidePin/index.js +24 -0
  876. package/dist/tools/upgrade/spliceStub/index.d.ts +13 -0
  877. package/dist/tools/upgrade/spliceStub/index.js +91 -0
  878. package/dist/tools/validate/checkAlignment/index.d.ts +15 -0
  879. package/dist/tools/validate/checkAlignment/index.js +42 -0
  880. package/dist/tools/validate/checkPlanSpec/index.d.ts +9 -0
  881. package/dist/tools/validate/checkPlanSpec/index.js +27 -0
  882. package/dist/tools/validate/index.d.ts +20 -0
  883. package/dist/tools/validate/index.js +91 -0
  884. package/dist/types/index.d.ts +1366 -0
  885. package/dist/types/index.js +1 -0
  886. package/dist/util/baseName/index.d.ts +6 -0
  887. package/dist/util/baseName/index.js +9 -0
  888. package/dist/util/buildTreeData/index.d.ts +7 -0
  889. package/dist/util/buildTreeData/index.js +51 -0
  890. package/dist/util/checkboxPattern/index.d.ts +9 -0
  891. package/dist/util/checkboxPattern/index.js +9 -0
  892. package/dist/util/classify/holdsCode/index.d.ts +6 -0
  893. package/dist/util/classify/holdsCode/index.js +31 -0
  894. package/dist/util/classify/holdsCode/isCodeFile/index.d.ts +2 -0
  895. package/dist/util/classify/holdsCode/isCodeFile/index.js +11 -0
  896. package/dist/util/classify/index.d.ts +17 -0
  897. package/dist/util/classify/index.js +163 -0
  898. package/dist/util/countCheckboxes/index.d.ts +16 -0
  899. package/dist/util/countCheckboxes/index.js +29 -0
  900. package/dist/util/describeError/index.d.ts +7 -0
  901. package/dist/util/describeError/index.js +7 -0
  902. package/dist/util/firstLine/index.d.ts +10 -0
  903. package/dist/util/firstLine/index.js +17 -0
  904. package/dist/util/isProcessRunning/index.d.ts +10 -0
  905. package/dist/util/isProcessRunning/index.js +22 -0
  906. package/dist/util/isVersionBehind/index.d.ts +6 -0
  907. package/dist/util/isVersionBehind/index.js +23 -0
  908. package/dist/util/parseBody/index.d.ts +7 -0
  909. package/dist/util/parseBody/index.js +43 -0
  910. package/dist/util/parseFrontmatter/index.d.ts +14 -0
  911. package/dist/util/parseFrontmatter/index.js +66 -0
  912. package/dist/util/readPackageVersion/index.d.ts +6 -0
  913. package/dist/util/readPackageVersion/index.js +24 -0
  914. package/dist/util/runtimePaths/create/index.d.ts +11 -0
  915. package/dist/util/runtimePaths/create/index.js +17 -0
  916. package/dist/util/runtimePaths/createRoot/index.d.ts +7 -0
  917. package/dist/util/runtimePaths/createRoot/index.js +13 -0
  918. package/dist/util/runtimePaths/isProjectKey/index.d.ts +7 -0
  919. package/dist/util/runtimePaths/isProjectKey/index.js +18 -0
  920. package/dist/util/runtimePaths/listProjectFolders/index.d.ts +10 -0
  921. package/dist/util/runtimePaths/listProjectFolders/index.js +28 -0
  922. package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.d.ts +11 -0
  923. package/dist/util/runtimePaths/moveLegacyRoot/compareFiles/index.js +27 -0
  924. package/dist/util/runtimePaths/moveLegacyRoot/index.d.ts +13 -0
  925. package/dist/util/runtimePaths/moveLegacyRoot/index.js +85 -0
  926. package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.d.ts +15 -0
  927. package/dist/util/runtimePaths/moveLegacyRoot/moveLog/index.js +47 -0
  928. package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.d.ts +13 -0
  929. package/dist/util/runtimePaths/moveLegacyRoot/moveRecord/index.js +29 -0
  930. package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.d.ts +13 -0
  931. package/dist/util/runtimePaths/moveLegacyRoot/publishCopy/index.js +38 -0
  932. package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.d.ts +8 -0
  933. package/dist/util/runtimePaths/moveLegacyRoot/removeEmptyFolders/index.js +11 -0
  934. package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.d.ts +9 -0
  935. package/dist/util/runtimePaths/moveLegacyRoot/resolveLegacyRoot/index.js +23 -0
  936. package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.d.ts +4 -0
  937. package/dist/util/runtimePaths/moveLegacyRoot/shared/isGone/index.js +9 -0
  938. package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.d.ts +4 -0
  939. package/dist/util/runtimePaths/moveLegacyRoot/shared/unlinkIfPresent/index.js +8 -0
  940. package/dist/util/runtimePaths/resolve/index.d.ts +9 -0
  941. package/dist/util/runtimePaths/resolve/index.js +31 -0
  942. package/dist/util/runtimePaths/resolve/nameProjectFolder/index.d.ts +10 -0
  943. package/dist/util/runtimePaths/resolve/nameProjectFolder/index.js +23 -0
  944. package/dist/util/runtimePaths/resolveArchivedLog/index.d.ts +9 -0
  945. package/dist/util/runtimePaths/resolveArchivedLog/index.js +19 -0
  946. package/dist/util/runtimePaths/resolveEndedMark/index.d.ts +11 -0
  947. package/dist/util/runtimePaths/resolveEndedMark/index.js +21 -0
  948. package/dist/util/runtimePaths/resolveEventLog/index.d.ts +10 -0
  949. package/dist/util/runtimePaths/resolveEventLog/index.js +20 -0
  950. package/dist/util/runtimePaths/resolvePresenceFile/index.d.ts +11 -0
  951. package/dist/util/runtimePaths/resolvePresenceFile/index.js +21 -0
  952. package/dist/util/runtimePaths/resolveRoot/index.d.ts +8 -0
  953. package/dist/util/runtimePaths/resolveRoot/index.js +13 -0
  954. package/dist/util/runtimePaths/resolveSessionLog/index.d.ts +11 -0
  955. package/dist/util/runtimePaths/resolveSessionLog/index.js +21 -0
  956. package/dist/util/runtimePaths/shared/isSessionId/index.d.ts +8 -0
  957. package/dist/util/runtimePaths/shared/isSessionId/index.js +10 -0
  958. package/dist/util/runtimePaths/shared/pickPathModule/index.d.ts +8 -0
  959. package/dist/util/runtimePaths/shared/pickPathModule/index.js +11 -0
  960. package/dist/util/runtimePaths/shared/projectKeyHash/index.d.ts +7 -0
  961. package/dist/util/runtimePaths/shared/projectKeyHash/index.js +7 -0
  962. package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.d.ts +12 -0
  963. package/dist/util/runtimePaths/shared/resolveAppDataRoot/index.js +32 -0
  964. package/dist/util/runtimePaths/shared/runtimeNames/index.d.ts +20 -0
  965. package/dist/util/runtimePaths/shared/runtimeNames/index.js +20 -0
  966. package/dist/util/runtimePaths/types/index.d.ts +55 -0
  967. package/dist/util/runtimePaths/types/index.js +1 -0
  968. package/dist/util/scan/index.d.ts +12 -0
  969. package/dist/util/scan/index.js +228 -0
  970. package/dist/util/sessionQuietLimit/index.d.ts +9 -0
  971. package/dist/util/sessionQuietLimit/index.js +9 -0
  972. package/dist/util/skipDirs/index.d.ts +7 -0
  973. package/dist/util/skipDirs/index.js +15 -0
  974. package/dist/util/timeUnits/index.d.ts +15 -0
  975. package/dist/util/timeUnits/index.js +15 -0
  976. package/dist/versions.json +330 -0
  977. package/package.json +83 -5
@@ -0,0 +1,774 @@
1
+ ---
2
+ intent: >
3
+ Observer finds the kanban board from the brain config's `kanban` field (task observer-board-missing-when-agent-omits-brain-folder); released in 0.18.0.
4
+ ---
5
+
6
+ # AIDE SESSION
7
+
8
+ Cold-start protocol for agents reorienting on this project. This is a
9
+ snapshot of the current architectural intent and the anti-regression
10
+ invariants every build phase must hold. It is NOT historical commentary —
11
+ superseded design decisions are cut, not annotated.
12
+
13
+ ## State summary (set 2026-11-29, rename tested, release pending)
14
+
15
+ 2026-11-28 (latest): /aide boot clean on v0.20.5 (outdated empty, behind null, brain ok, brainMigration null; observer on port 24681). Board at boot: 38 open tasks, In Progress empty (since then 3 tasks created: two research tasks and the rename task), github-npm-and-mcp-registry-discovery-metadata reviewed by the user from a link list and moved to Done; rename-the-product-to-aidemd created and moved to In Progress. Naming research (read-only, gh + npm view): of 20 comparable projects (n8n-io/n8n, vitejs/vite, tauri-apps/tauri, omnara-ai/omnara, supabase/supabase, Fission-AI/OpenSpec + @fission-ai/openspec, upstash/context7 + @upstash/context7-mcp, microsoft/playwright-mcp + @playwright/mcp, bmad-code-org/BMAD-METHOD + bmad-method, repomix, prisma/orm and others) none uses org/server; the repo is named after the product, often repeating the org name, and the npm name carries the product word. npm names aidemd and aidemd-mcp were free on 2026-11-28. The user decided the product rename (see the product-rename decision). Nothing renamed or published yet. Then: the rename design was settled with the user (decision #110), 11 plans approved, and the build started with the install plan. Build: all 11 plans built (13 steps, one implementor per step, install first), QA PASSED on every module with no todo.aide (one JSDoc sentence in aidePackage fixed by the main agent), ephemerals removed through aide_cleanup (11 completed plans, the install brief, the abandoned util and types plans). Full suite 7563 passed, 1 known load-timeout flake (parseBrainAide/singleSource, passes alone); tsc clean. Main-agent edits: package.json (name @aidemd-mcp/aidemd, mcpName io.github.aidemd-mcp/aidemd, bins aidemd + aidemd-mcp, server bin dropped, repo URL), package-lock.json, server.json (name, repository, icon URL, identifier), .github/workflows/publish.yml (package name read from package.json; workflow_dispatch input former_version publishes the tag's build as @aidemd-mcp/server at that version, npm only, after the tests), scripts/publish.mjs (README pin regex from package.json name), .aide/bin/aide-tree.mjs, release-check run.mjs (PKG new name, PREV_PKG former name with AIDE_RC_PREVIOUS_PKG override), prose (README, CONTRIBUTING, SECURITY, CLAUDE.md, .aide/docs/brain-aide.md, .aide/reference/tools/index.md, .claude/commands/aide/brain.md and upgrade.md — new step 6 relays upgrader follow-ups — .claude/agents/aide/aide-upgrader.md — new Follow-ups return field — .claude/skills/aide/SKILL.md, release-check SKILL.md/NOTES.md, src/types/index.ts JSDoc, src/service/observer/brief.aide #58), CHANGELOG [Unreleased] Changed bullet + [migration] entry (Detect: hooks naming @aidemd-mcp/server; Migrate: npm i -g --force @aidemd-mcp/aidemd, then the hooks category; follow-up to remove the old package only on the user's word) + upgrader follow-up bullet. .aide/readme.aide renamed by the spec writer. Nothing committed yet; not released.
16
+
17
+ 2026-11-28: 0.20.5 released (release commit 233569a, author aidemd-dev; tag v0.20.5; Publish green): npm 0.20.5; MCP Registry 0.20.5 latest with title AIDEMD and the Expo icon (raw.githubusercontent .github/assets/expo-avatar.png). Release check 30/30, hook speed test passed (median overhead 119–144 ms). CHANGELOG 0.20.5: AIDEMD name + registry title/icon; SECURITY.md + CONTRIBUTING.md. Global install 0.20.5. The first push of the release failed: Git's credential manager had stored the aidemd-dev login (from the user's gh auth login browser sign-in) and aidemd-dev was only a member; with the user's yes aidemd-dev was made an OWNER of the aidemd-mcp org (in the user's Chrome, as bwz3rbot), then the push succeeded. Git pushes on this machine now go out as aidemd-dev. gh holds both accounts (bwz3rbot active). aidemd-dev's 2FA was enabled later the same day. awesome-list PR opened as aidemd-dev via the GitHub API (no git): https://github.com/punkpeye/awesome-mcp-servers/pull/21076 (one line in Developer Tools: AIDEMD wording + 🍎 🪟 🐧; Glama backlink noted). MCP Market claim still fails ('GitHub ownership checks are temporarily unavailable' — likely cannot verify an org-owned repo with an email-only OAuth scope; needs MCP Market support). mcpservers.org refreshed its README copy (pre-rename 'AIDE (aidemd)' text) but its header still says '6 MCP tools, 8 slash commands' (fix only via its contact email). aidemd.dev site sync for 0.20.5 NOT run: a session is open and running in the site's folder (local_132be468, 'aidemd.dev · /aide') — waiting on the user. Close of session (2026-11-28): with the user's yes, github-npm-and-mcp-registry-discovery-metadata moved In Progress → In Review (leftovers stashed on the task) and move-aidemd-mcp-npm-package-to-lowmeadow-llc moved In Review → Done. The user will run the aidemd.dev 0.20.5 site sync / frontend deploy themselves later. In Progress is empty. The user enabled 2FA on aidemd-dev (GitHub reports no aidemd-mcp member without 2FA). With the user's yes, aidemd-mcp/aidemd.dev-v1 was deleted (restorable by an org owner for 90 days); the org now has two repos, server and aidemd.dev. GitHub profiles (research: brain research/seo-aeo/2026-11-28-github-org-and-account-profiles.md, 7.3 — no measured search/AEO effect, trust hygiene; aidemd-dev is presented as Lowmeadow LLC's company account, operated by a person, not a bot, per GitHub ToS B.3; published with the user's yes): org aidemd-mcp display name AIDEMD (page title now 'AIDEMD · GitHub'), description 'Open-source agentic SDLC framework for intent-driven, spec-driven development.', website https://aidemd.dev, no email/location; new public repo aidemd-mcp/.github with profile/README.md (definition, links row, install via npm i -g + aidemd-mcp init, repo table, contributing/security/license, 'maintained by Lowmeadow LLC'), authored by aidemd-dev. aidemd-dev profile: name AIDEMD, bio 'Product account for AIDEMD (aidemd.dev), run by Lowmeadow LLC. Commits and PRs are made with AI coding agents and reviewed by a maintainer.', website aidemd.dev, company @aidemd-mcp, pinned server + aidemd.dev, no profile README. aidemd-mcp/aidemd.dev About now says 'Website for AIDEMD…'. Not done: verified-domain badge for aidemd.dev (needs a DNS TXT record and a public @aidemd.dev org email; free-plan availability unclear). Known: the server contributors list still shows the personal account (~311 commits, history not rewritten). The aide-skill rule 'never start an /aide session' was committed and pushed (unreleased).
18
+
19
+ 2026-11-28 (earlier): 0.20.4 released with the user's yes ('Release patch'): release commit 5108984 (author aidemd), tag v0.20.4, Publish run green. npm shows 0.20.4 with description 'Open-source agentic SDLC framework for intent-driven, spec-driven development, with an MCP toolkit' and homepage https://aidemd.dev; MCP Registry 0.20.4 isLatest with title AIDE, websiteUrl and the new description. Pre-release: release check 30/30, no skips (headless /aide included); build clean; hook speed test passed (median overhead 79–106 ms). Global install 0.20.4. aidemd.dev: the user archived both open site sessions first; headless sync applied methodology-docs (changelog) and version-metadata, site commit da0c8ed pushed, deploy green; brainMigration null. The site's hooks category still differs (left alone; needs /aide:upgrade hooks in a session in the site's folder). After the release: SECURITY.md + CONTRIBUTING.md added in .github/ (271f706, pushed; community health 62%); aidemd-dev invited to the aidemd-mcp org (pending). aidemd-dev accepted the org invite; glama.json maintainers → aidemd-dev (a982fa1, pushed; its first CI run failed in actions/setup-node ('manifest.filter is not a function', GitHub infra), re-run green). Directory check in the user's Chrome (2026-11-28): Glama already re-synced on its own (new opening, Features, current tools) but is unclaimed; mcpservers.org lists us with the stale header 'Structured .aide spec files… 6 MCP tools, 8 slash commands, TUI wizard' and an old README copy — its 'Request update' button was clicked (a one-click refresh request, sent without a preview; status 'Requested'); MCP Market lists 'AIDE' (aide-1) with April text and a 'Claim this listing' button (sign-in needed); LobeHub lists @aidemd-mcp/server as 'Unvalidated' with old text (sign-in needed to claim). No form submissions were needed; every remaining change needs the user to sign in as aidemd-dev and claim. Later 2026-11-28: product renamed AIDEMD and the Expo avatar adopted (decision #105 update), commit 827f623 (README opening, server.json title + icons, .github/assets/expo-avatar.png; pushed; registry picks it up next release). GitHub About now says AIDEMD. Glama claimed by aidemd-dev (Glama account created for npm@aidemd.dev with the user's yes; GitHub OAuth for aidemd-dev, read:user/user:email/read:org): name AIDEMD, the AIDEMD About text as description, Expo thumbnail, verified maintainer, discovery score 92%. Expo avatar set on the aidemd-dev GitHub account and the aidemd-mcp org. MCP Market: signed in as aidemd-dev (OAuth app 'MCP Market by itsgreyum', button 'Authorize knoxgraeme', email read only, user approved) but the claim fails with 'GitHub ownership checks are temporarily unavailable' — retry later. LobeHub: no claim/edit control on the listing (scraped from the README; ownership through LobeHub's own publish flow) — left. The browser's GitHub session was left on the user's personal account.
20
+
21
+ 2026-11-28 (earlier): /aide boot clean on v0.20.3 (outdated empty, behind null, brain ok, brainMigration null; observer replaced the 0.20.2 observer, port 24681). Board check: 38 open tasks; In Progress was empty; In Review holds move-aidemd-mcp-npm-package-to-lowmeadow-llc (done, released 0.20.3; the user chose NOT to move it to Done yet; its title still says 'Lowmeadow LLC account' though the account is `aidemd`). The user picked github-npm-and-mcp-registry-discovery-metadata (p0) and it is moving Backlog → In Progress. The user asked for a full research pass before any change ('make sure we know what were looking for'). Brain research already covers GitHub repo discoverability (research/seo-aeo/2026-11-25-github-repo-discoverability.md, 8.0, 10-item checklist), naming (research/seo-aeo/2026-11-25-package-and-repo-naming-for-discovery.md, 8.0, keep names) and target queries (research/seo-aeo/2026-11-25-agentic-sdlc-target-queries-and-competitors.md, 7.9). Gaps found: the official MCP Registry (entries stuck at 0.10.0 not marked latest; server.json schema fields; downstream consumers) and MCP directories/awesome-lists (which matter, how each listing works, requirements, current listing text). aide-domain-expert filled both (read-only; nothing submitted): research/seo-aeo/2026-11-28-official-mcp-registry-metadata.md (8.1) and research/seo-aeo/2026-11-28-mcp-directories-and-awesome-lists.md (7.9), linked from the hub. Findings: the registry is NOT stale — io.github.aidemd-mcp/server has 40 versions and 0.20.3 is isLatest (published 8 s after npm); the earlier 0.10.0 reading was an artifact of GET /v0.1/servers?search= returning every version sorted by the string name:version, 30 per page (use &version=latest). publish.yml is sound; 0.13.0 is missing from the registry (504 at publish). server.json carries only name, description (84 chars, April wording), repository, version, one npm stdio package — no title, websiteUrl, icons, repository.id, runtimeHint; schema 2025-12-11, description cap 100 chars; published versions are immutable, so changes ship with a release. Directories: Glama lists us at 0.17.1 (claim state unknown, needs the user's login + Sync); mcp.so text stale ('6 MCP tools, 8 slash commands'); punkpeye/awesome-mcp-servers entry (PR #5102, April) stale; PulseMCP paused (frozen April listing); GitHub MCP registry is curated (we are not in it); Smithery skipped (acquired, proxy shut down 2026-10-31). README Glama badge alt text reads 'server MCP server'. Current live state read 2026-11-28: GitHub About still has the triple space, website empty, 8 topics; package.json has no homepage field, description differs from About, keywords mcp/aide/progressive-disclosure/ai-agents/spec-documents; aidemd-mcp/aidemd.dev has empty description and website, aidemd-mcp/aidemd.dev-v1 has empty description and website http://aidemd.dev/ (which repo is live is to confirm with the user). Wording settled with the user (see the discovery-wording decision). Repo edits made by the main agent, uncommitted: README.md opening paragraph replaced and the Glama badge alt text set to 'aidemd-mcp/server MCP server'; package.json description = the short line, homepage https://aidemd.dev added, keywords mcp-server, agentic-sdlc, spec-driven-development, intent-driven-development added; server.json gains title 'AIDE', websiteUrl https://aidemd.dev, the short-line description and packages[0].runtimeHint 'npx'; CHANGELOG [Unreleased] Changed bullet. JSON valid; retiredVocabulary + initContent tests 131/131. These reach npm and the registry only with the next release. GitHub settings applied with the user's yes (2026-11-28, `gh repo edit`, read back): aidemd-mcp/server About = the decision #105 About text, website https://aidemd.dev, topics now 11 (added agentic-sdlc, intent-driven-development, spec-driven-development to the existing eight). aidemd-mcp/aidemd.dev (the live Pages repo) About set with the user's yes and read back: 'Website for AIDE, the open-source agentic SDLC framework: docs for the methodology, commands, agents, skills, MCP tools and hooks; the brain and the observer; and a Learn section on intent-driven engineering, spec-driven development, SDD framework comparisons, the install and the pipeline phases.', website https://aidemd.dev. (The site is not the project's source: it renders the methodology docs, commands, agent definitions and skills, describes the tools and hooks, explains the brain and observer, and has the Learn section.) aidemd-mcp/aidemd.dev-v1 described ('Superseded first version of aidemd.dev. The live site is aidemd-mcp/aidemd.dev.'), website cleared and archived, with the user's yes; read back isArchived true. README tools generator built through the pipeline (decision #107): .aide/readme.aide frontmatter amended and body rewritten (user-approved); new spec scripts/buildReadme/.aide (user-confirmed); 6-step plan approved by the user and built (one implementor per step); QA found 2 issues — an inline countMarker helper (moved to spliceSection/countMarker with its own test) and a stale two-launch-mode outcome in readme.aide (spec moved to global-only, in line with decision #56) — both fixed, re-QA PASSED on both. Retro promoted to brain process/retro/2026-11-28-aidemd-readme-tools-generator.md; scripts/buildReadme plan.aide + todo.aide and .aide/todo.aide removed via aide_cleanup. README now: the agreed opening, a six-part Features list linking aidemd.dev (all 11 links 200) plus a Learn-pages line, and a generated Tools section of all 14 tools between <!-- aide-tools:start --> / <!-- aide-tools:end --> (was 11 hand-written). `npm run build:readme` regenerates it (kept out of build/prepublishOnly); scripts/buildReadme/index.test.ts fails CI when stale (proven by a one-character break). Tests: buildReadme 38/38, tsc clean; full suite 7533 passed, 1 load-timeout flake (src/service/parseBrainAide/singleSource.test.ts, passes alone). PDF script moved to scripts/exportPdf/ (git mv; npm export-pdf path and spec scope updated). CLAUDE.md reference-docs rule now says to run npm run build:readme after changing a tool page; CHANGELOG [Unreleased] has two Changed bullets. readme.aide alignment still reads misaligned (a reset to unreviewed was blocked by the auto-mode classifier; left for the user/aligner). Known spec drift not fixed (no outcome names it): readme.aide Strategy badge guidance (below H1, skip CI badges) vs the README (badges above H1, CI/TypeScript/Discord), and a Bad example that blames a missing -y on an npx block. Committed as 86049fc (author aidemd <npm@aidemd.dev>, Claude co-author line) and pushed to main with the user's yes; CI on 86049fc green (the README drift test's first CI run). Not released.
22
+
23
+ 2026-11-28 (earlier): 0.20.3 released (release commit 87c0325, tag v0.20.3; Publish run 46103595867 green). npm shows version 0.20.3, author Lowmeadow LLC, maintainers only `aidemd <npm@aidemd.dev>` (tetsukodaigroupllc gone). Release check 30/30, no skips (headless /aide included); hook speed test passed (median overhead 105–130 ms). Global install 0.20.3. aidemd.dev synced headless (site commit 667724d: changelog, versions.json, 8 reference pages, upgrade command, aide-observer skill; covers the skipped 0.20.0–0.20.2 syncs), deploy green; brainMigration null. The site's hooks category still differs (its .claude/settings.json / settings.local.json) — left for /aide:upgrade in a session in the site's folder. Process correction (user, 2026-11-28): the sync ran under the user's open but idle aidemd.dev /aide session; CLAUDE.md publishing step 2 now treats any unarchived session in the site's checkout as active (idle included) and asks the user first.
24
+
25
+ 2026-11-28 (earlier): /aide boot clean (v0.20.2, outdated empty, behind null, brain ok, brainMigration null; observer on port 24681). License stays MIT (decision #104). npm ownership moved: aidemd.dev now receives mail (SES us-east-2 verified, MX to inbound-smtp.us-east-2.amazonaws.com; npm@ and security@aidemd.dev added to receipt rule showfold-security-forward, forwarding to the founder's Gmail; tested, SPF/DKIM/DMARC pass; receiving only, no sending identity). npm account `aidemd` (npm@aidemd.dev, passkey 2FA) is now Owner of the aidemd-mcp org and the package's only maintainer (write via developers team); tetsukodaigroupllc was removed. Trusted Publisher (aidemd-mcp/server, publish.yml) still Valid, so CI releases are unaffected. Open: `npm view @aidemd-mcp/server maintainers` still shows the old maintainer from registry metadata; may refresh only on the next publish. The GitHub org's public member list is now empty. Repo edits (committed as 9d86efe and pushed 2026-11-28): package.json author and LICENSE copyright → Lowmeadow LLC, scripts/export-pdf.ts cover/footer → Lowmeadow LLC with no personal name (scripts/.aide updated to match, alignment unreviewed), CHANGELOG [Unreleased] Changed bullet. Private legal details: brain `projects/aidemd/legal/session-legal-record.md`. The four earlier local session commits were squashed into a54c430 (session record) so no private details reached GitHub; both commits are pushed, main = origin/main. The new author and copyright reach npm only with the next release.
26
+
27
+ 2026-11-28 (earlier): /aide boot clean (v0.20.2 current, outdated empty, behind null, brain ok, brainMigration null). Private legal details: brain `projects/aidemd/legal/session-legal-record.md`.
28
+
29
+ 2026-11-27 (latest): 0.20.2 released (fix commit 49dcdd8; release commit 623207b, tag v0.20.2; Publish green; npm 0.20.2; global install 0.20.2; observer restarted on 0.20.2, pid 32960, port 24680, same token). In the user's Chrome, 0.20.1 still showed checkbox steps broken: .md-check is inline-flex, so each text run and code span became its own flex column ('Cre / ate'), and blocks nested under a checkbox item sat at the box's left edge. Fix: Blocks/Item wraps the checkbox text in one `<span class="t">` (min-width:0); CSS `.av .md-body li:has(> .md-check)>:not(.md-check){margin-left:22px}`. Previewed on the real aidemd.dev readFileHistory plan in Chrome; observer page suite 1663/1663; release check 30/30; hook speed test passed. Lesson: verify observer page changes visually in a real browser, not only by DOM structure. After the restart the aide MCP server had reconnected mid-conversation; aide_observer_start (called without a fresh session_started) HALTed on this conversation's own earlier observer id 20261127T212129215Z-4c9a08 (Claude session 41afd60d; new id 20261127T223708756Z-ee33e9); the user approved ending the old id and the next start passed. Logged as task observer-halts-a-session-on-its-own-conversation (Backlog, p2, bug). aidemd.dev site sync skipped for 0.20.1 and 0.20.2 at the user's word.
30
+
31
+ 2026-11-27 (latest): 0.20.1 released — the observer markdown fix (commit b579721; release commit c907029, tag v0.20.1). Release check 30/30, no skips; hook speed test passed (median overhead 128–153 ms vs 175/200 budget). Publish workflow green; npm serves 0.20.1; global install updated to 0.20.1. The observer on port 24680 was restarted on 0.20.1 (same token) and the aidemd.dev readFileHistory plan now renders nested lists and an unwrapped tree. Before publishing, the stale staged deletion of .claude/settings.local.json was unstaged so it stayed out of the release commit. aidemd.dev site sync skipped for 0.20.1 at the user's word (a session is working there and the fix is observer-only).
32
+
33
+ 2026-11-27:The user reported the aidemd.dev plan src/lib/utils/readFileHistory/plan.aide rendering badly in the observer's Details pane. Root causes: parseBlocks ignored indentation, so nested list items came out flat, and lines indented under an item after its sub-list were glued onto the last sub-bullet; .md-code used white-space:pre-wrap, so Project Structure trees lost their columns. Fixed by hand by the main agent (standing approach for observer page UI changes; no pipeline, no board task), committed as b579721, released in 0.20.1: MarkdownBlock list items are now { text, blocks } (new type MarkdownListItem in src/observer/page/types); parseBlocks reads each item's indented lines (new helpers parseBlocks/collectItemBody and parseBlocks/measureIndent; tab = 4 columns; a blank line stays in the item when the next line is indented under it; fenced blocks inside items taken whole) and parses them recursively; rendering moved to shared/Markdown/Blocks (recursive) with Blocks/Item for checkboxes; new shared/Markdown/blockTexts flattens items for Drawer/listItems and buildSectionBlock (a task-note section with a nested list now renders as markdown); CSS: .md-code white-space:pre, overflow:auto, max-height:60vh; li>*+* spacing; checkbox rule narrowed to li:has(> .md-check). Fixture plan (seedFixtures renderPlan) gained a nested Decisions list and a tree continuation line. Tests: tsc clean; observer page suite 1662/1663 (the useStableOrder timing flake passes alone); seedFixtures 73/73; verified in the fixture observer on port 24799 (nested list and aligned scrolling tree). CHANGELOG [Unreleased] Fixed bullet added. The live observer on 24680 still runs the global 0.20.0 install, so the user sees the fix only after the next release and global install.
34
+
35
+ 2026-11-26 (latest, night): 0.20.0 released (feature commit c268ace, release ab751eb, tag v0.20.0; CI published npm + MCP Registry; global install is 0.20.0). Release check 30/30. Ships both tasks: hooks in .claude/settings.local.json with node direct + SessionEnd 10 s, transcript backstop and reopen rules, and the zod-free hook (103–136 ms over bare node). All per-module ephemerals cleaned (src/service/observer/brief.aide kept); retro promoted to brain process/retro/2026-11-26-aidemd-mcp-hooks-local-settings.md. Both tasks moved to In Review.
36
+
37
+ 2026-11-26 (evening): task make-the-claude-code-hook-start-faster built and QA-passed (uncommitted). zod is off the hook's import graph: event/shared observerRecord, presenceRecord and endedMark now export hand-written types and `parse(value): T | null`; limits moved to event/shared/limits; new event/shared/isIsoDateTime and isClosedRecord (positional `isClosedRecord(value, keys)`, TS1230); cli/hook parseHookInput hand-validates (drops an own `__proto__` key like zod passthrough). Each contract test keeps the old zod schema as `reference` with an agreement table and an expectTypeOf pin; an import-graph test and an opt-in built-graph check fail if zod comes back. Speed run (cli/hook plan step 4, recorded under brief #103 2026-11-26): paired medians 103–136 ms over bare node in both runs, under 175/200 and the old 150/180 bar. The event module's SessionEnd plan.aide was cleaned up (completed) to make room for this task's event plan. QA passed event, src/observer and cli/hook (0 open). Full suite: 7475 passed, 1 failed — useStableOrder timing test, untouched, passes alone (load flake). CHANGELOG [Unreleased] Changed bullet added. This also clears the SessionEnd task's speed blocker (cli/hook step 2 of that work is now step 4, checked).
38
+
39
+ 2026-11-26 (earlier): Task `observer-session-stays-open-when-session-end-hook-is-killed` — all nine plans built (one implementor per step; upgrade step 1 re-run because its first implementor skipped the playbook; cli/init's two steps ran in one session), QA PASSED on every module (hooks-side QA found 2 prose items in src/tools/upgrade, fixed by the main agent, re-QA passed; todo.aide approved, all checked). Prose by the main agent: aide-observer SKILL.md (REOPENED/STOPPED/BLOCKED start replies, previously-ended flag, HALT text), the three observer tool descriptions and aide_upgrade's hooks bullet in src/startServer/index.ts, .claude/commands/aide/upgrade.md (malformed/no-global/tip hooks handling, malformed counts in skip and walk rules), .aide/reference tools pages (aide_observer_start/event/end_session, aide_upgrade, aide_info) and hooks pages (command form, SessionEnd 10 s budget, kept links, transcript backstop), CHANGELOG [Unreleased] Changed bullets + [migration] (hooks move from .claude/settings.json to .claude/settings.local.json), release-check run.mjs + SKILL.md (3.assert local file/node form/timeout/git-ignored; 4.merge user's settings.json byte-identical; 4.boot old AIDE hooks deferred + aide_info lists hooks; 11.after hooks moved). A startServer test that spawned real `npm root -g` was isolated with the same mocks the install tests use. Gates: tsc clean; full suite 7236 passed, 1 failed (that startServer timeout, now fixed, startServer 89/89 ×3); release check 30/30 incl. upgrade from published 0.19.1. BLOCKER: hook speed test misses its budget — diff medians (b) 194/205, (c) 210/216, (d) 218/224 ms vs 175 quiet / 200 refreshing; aide-explorer showed the committed HEAD fails the same today (paired current-vs-HEAD diff +1/−7 ms, identical 34-module import graph), so it is machine load, not this change; ~40–50 ms per call is zod (task make-the-claude-code-hook-start-faster, p3). cli/hook plan step 2 stays unchecked. Side effect: an explorer's `git worktree remove` emptied node_modules via a junction; it was restored with `npm ci` from the lockfile. Nothing committed for this task yet. Waiting on the user's call on the speed budget.
40
+
41
+ 2026-11-26 (earlier): 0.19.1 released — task `fix-shipped-doc-relative-links` (p1 bug, created by the user from the aidemd.dev session): five relative links in /aide:fix, /aide:plan, /aide:qa and the aide skill went one folder too shallow; fixed to ../../../.aide/docs/…, plus a new initContent test that fails on any unresolvable relative link in the shipped docs (commit c584151). CLAUDE.md publishing step 2 now requires checking that no session is working in the site's checkout before the headless sync, and never starting a second session there (user: 'Definitely don't create a new session in the front end if one's already running'). Release check 30/30; v0.19.1 published; global install 0.19.1; site's /aide session was idle, synced headless (site commit d8b9c2e) and deployed green. Task moved to In Review. The SessionEnd task's specs/plans were stashed during the release and restored. New task `observer-read-tools-for-sessions-and-pipelines` (p2, Backlog): read-only observer tools — list projects, list sessions with real state, pipeline status. The user deprioritized the other p1s (edge cases) and wants the hosted observer (`remote-observer-hosted-web-interface`) next after the SessionEnd fix. The headless sync sessions keep printing 'SessionEnd hook [aidemd-mcp hook] failed: Hook cancelled' on exit — the bug the SessionEnd task fixes.
42
+
43
+ 2026-11-26 (earlier): 0.19.0 released (commits 0372145 feat(reference), aab95a1 docs(agents) + SessionEnd specs + session, a0cfa0b test(release-check) upgrade-from-previous group 11, ca3f529 release; tag v0.19.0; Publish + CI green; npm 0.19.0; global install 0.19.0). Pre-release gate: tsc clean; full suite 6967 passed / 1 failed once then 0 failed on re-run (load flake, tracked by fix-flaky-5s-install-suite-test-timeouts); build: versions.json 68 artifacts, 21 reference keys; hook speed test passed; release check 30/30, no skips (headless /aide ran) — including new group 11 at the user's request: the published 0.18.0 inits a project, the packed build finds 26 outdated, applies methodology-docs, version-metadata, reference (+21), commands, agents, skills, then 0 outdated, 21 pages byte-identical, 5 user files unchanged. aidemd.dev synced headless (site commit 249106a: changelog, versions.json, 21 reference pages, upgrade command, architect/auditor agents, aide-observer skill) and deploy green; its brainMigration lists stale section `config` (needs /aide:brain config in a session in the site's folder, user consent). The site's own uncommitted work from another session was left alone. The headless sync session itself printed 'SessionEnd hook [aidemd-mcp hook] failed: Hook cancelled' on exit — live evidence for the paused SessionEnd task. Task `add-aide-reference-folder-destructure-tools-add-hooks` moved to In Review (user said 'do all'). Still open for the site: new docs roots for .aide/reference/tools and .aide/reference/hooks (site-side, its own board).
44
+
45
+ 2026-11-26 (earlier): Task `add-aide-reference-folder-destructure-tools-add-hooks` built, QA PASSED on all eight modules (no todo.aide, no retro), plans cleaned via aide_cleanup. Built: src/types (`reference` in InitCategory/UpgradeCategory); src/service/install/initContent (21 DOC_PATHS entries, ReferencePageEntry, listReferencePages(), two-way folder test); new src/service/install/reference (default export `reference`, imported as installReference; one byte-faithful step per page into `.aide/reference/`); src/service/install (reference steps after methodology, before commands); src/tools/upgrade/buildVersionsMeta (reference/* slugs); src/tools/upgrade (helper checkReference, `reference` category after version-metadata, per-page drift, one-unit apply; category count 12); src/cli/init (planner list includes the reference planner); src/startServer (new frontmatter-only spec; advertised enums include `reference` with exact-match tests). QA end-to-end in temp projects: cold init writes all 21 pages byte-identical, re-run `exists`, one drifted page alone `would-overwrite`, upgrade apply 3 created/1 updated/17 unchanged with methodology docs untouched. Prose by the main agent: aide_init/aide_upgrade description category lists, `init --help` lists `.aide/reference/`, `/aide:upgrade` reference note, the aide_init/aide_upgrade reference pages, CHANGELOG [Unreleased] Added bullet. Affected suites 3157 tests pass, tsc clean. Nothing committed. The reference pages must be committed before any release build (scripts/build-versions.ts skips files with no git history).
46
+
47
+ 2026-11-26 (earlier): The user put new task `add-aide-reference-folder-destructure-tools-add-hooks` (p1, feature) first, to unblock the aidemd.dev docs UI; moved Backlog → In Progress with the user's yes. The SessionEnd task stays In Progress, paused after Stage 1 (five specs amended and confirmed by the user), before Stage 3 synthesize. Investigation of `.aide/tools.md`: a hand-written captured-output tool reference, never committed (gitignored in ed84d94, 2026-04-26, the brain schema refactor), read by nothing, stale (missing aide_frontmatter, aide_cleanup and the three observer tools; outdated captured outputs). The user chose a rewrite from the current tool registrations (src/startServer/index.ts) and hook code (src/cli/hook). Prose by the main agent, uncommitted: `.aide/reference/tools/index.md` (table of contents) + 14 pages `<tool_name>.md`; `.aide/reference/hooks/index.md` + 5 pages (SessionStart, UserPromptSubmit, PostToolUse, Stop, SessionEnd) describing what each hook does, not how it is installed (user: 'we dont care how they are installed we want the descriptions of what they do'). Page format: frontmatter `name` + one-sentence `description`, one `# <name>` heading (the site's parseDocFrontmatter takes the title from the H1 and strips it when no `title` field), fixed sections. CLAUDE.md gained '## Reference Docs Stay in Sync With the Code': any tool or hook change updates its reference page in the same piece of work. `.aide/tools.md` and its .gitignore line are still in place, awaiting the user's OK to delete (untracked, so deletion is permanent).
48
+
49
+ 2026-11-26 (earlier): Working task `observer-session-stays-open-when-session-end-hook-is-killed` (In Progress, moved with the user's yes). Root cause (aide-explorer, measured): one `aidemd-mcp hook` call takes ~1.1–1.5 s wall on Windows — npm sh shim under Git Bash ~0.5 s (uname/cygpath/sed/dirname forks), node boot ~0.45 s, module graph import ~0.2 s, real work ~20 ms; the hook's 1000 ms internal deadline starts after all that. SessionEnd hooks share a 1.5 s budget by default and our hooks set no `timeout`, so on archive the hook is cancelled before its first durable write (presence, temp+rename). Linked and unlinked take the same path; the earlier A/B difference was race luck. Archiving a desktop session DOES fire SessionEnd (reason `other`) — confirmed in three tests. Timeout test (scratchpad hooktest3): SessionEnd hook with `"timeout": 10` and an added 3 s sleep, linked session, archived → presence `ended` written ~5.2 s after the hook started and the ended mark written: archiving honors the per-hook timeout budget. Claude Code docs: a per-hook `timeout` raises the shared SessionEnd budget up to 60 s. Also found: a closed Claude session's transcript ends with a `cost-state` record (Claude Code's own undocumented record holding the session's total cost/tokens); a running session's transcript has none; a resumed session writes after it, so only the last record counts. Nothing built yet.
50
+
51
+ 2026-11-26 (earlier): /aide boot (aide v0.18.0, outdated empty, behind null, brain ok, brainMigration null) hit a HALT for observer session 20261126T165225093Z-71ef38 = Claude session 1399b749 (the previous session that installed the hooks), which the desktop app had archived and was not running; its presence stayed `waiting` from its last Stop. Ended with the user's yes. Tests in throwaway scratchpad projects with logging hook wrappers showed archiving DOES fire SessionEnd (reason "other"), but the hook is killed right after it starts: an unlinked session just made it (presence `ended`), a session linked to the observer did not (SessionEnd fired 17:34:48 UTC, presence stayed `waiting`, no ended mark). One hook call measured ~1.4 s start-to-exit on Windows (bash + npm shim + node) against SessionEnd's ~1.5 s default. Prose fix (main agent, uncommitted): `.claude/skills/aide-observer/SKILL.md` HALT section now makes the agent verify each open session's real state before telling the user — find its Claude session id (HALT `claude:<id>` line, else the project's presence records under the runtime folder named by the observer link's `p/<key>`), check with the host whether it runs (desktop app: list sessions incl. archived, match folder + last activity; terminal: process + transcript last write), report running / closed without reporting its end / not verifiable; steps renumbered 1–8. CHANGELOG [Unreleased] Changed bullet added. Install + hook tests pass (one install-suite timeout flake passed alone). Nothing committed.
52
+
53
+ 2026-11-26 (earlier): Hooks registered in this repo via /aide:upgrade on 2026-11-26 (.claude/settings.json, untracked). The /aide boot ran /aide:upgrade because aide_info flagged `hooks`. The hooks category created .claude/settings.json, which registers `aidemd-mcp hook` for SessionStart, UserPromptSubmit, PostToolUse, Stop and SessionEnd; the registration is project-level only and runs the global v0.18.0 install. The file is untracked and not committed. The user chose to skip .aide/docs/changelog.md and .aide/versions.json: they are host-project copies, this repo is their source, and CHANGELOG.md at the root is canonical. .zed/settings.json was left alone: aide_upgrade reported it as "malformed" only because it parses Zed's JSONC (trailing commas) as strict JSON — a tool bug; the file is correct. aide-upgrader REPORT: UP TO DATE.
54
+
55
+ 2026-11-26 (earlier): 0.18.0 released 2026-11-26 (commit 349cad3, tag v0.18.0): the observer finds each project's board from the brain config's `kanban` field. Publish CI green, npm shows 0.18.0, global install updated to 0.18.0. aidemd.dev synced via headless session (site commit 34bf3f5: brain-aide and changelog docs, versions.json, aide/brain command, aide-brain-author and aide-observer skills), deploy run green. Pre-release: release check 25/25, hook speed test passed.
56
+
57
+ 2026-11-26 (earlier): The observer now finds a project's board from an optional `kanban` field in its brain config (`kanban: { source: folder, path: <absolute kanban folder> }`, board = <path>/<tag>) instead of the brain folder the agent reports. Built through 7 plans (types, parseBrainAide, provisionBrain, observer/kanban, observer/page, observer, cli), QA PASS (one changelog [migration] Detect fix), full suite 6917 passed, release check 25/25 incl. a new board assertion. Unreleased in [Unreleased].
58
+
59
+ 2026-11-25 (earlier): 0.17.1 released — npm + MCP Registry green (commit ce98c8b, tag v0.17.1). Release check 25/25 including the new 4.boot check and headless /aide; hook speed budget passed. Global install 0.17.1. aidemd.dev synced via headless /aide (site commit 6a912ba), deploy green.
60
+
61
+ 2026-11-25 (earlier): 0.17.0 released and the site synced, including its hooks. The boot hooks fix is built and QA-passed, committed and moving to In Review; unreleased (changelog [Unreleased]).
62
+
63
+ 2026-11-25 (earlier): Released 0.17.0 (release cf4fa46; feature 32d92f0, fixes 3ca8c83 and 2459ee9): mandatory observer with one open session per project (HALT + aide_observer_end_session), hook liveness, port fallback and BLOCKED, pipeline rails, the aide-observer skill and /aide router, the handshake's real version, per-user files moved out of packaged-app AppData to %USERPROFILE%\.aidemd with a one-time history move, and the repo-only /release-check skill. Publish green; global install 0.17.0; aidemd.dev synced (2eaa6b2) and deployed. All tasks of the pass are Done.
64
+
65
+ 2026-11-25 (earlier): On 2026-11-24 the observer showed two live aidemd-mcp sessions; one was an exited session (pid 19388, last event 23:07) that still counted as live because of the 30-minute event-age rule. Discussing it, the user decided that hooks are needed for session liveness. Decision #59 had rejected hooks only as the source of pipeline meaning (liveness was never weighed) and is now amended: agent events stay the only source of pipeline meaning; Claude Code hooks may report activity and session end only, for session liveness. Task `observer-judges-session-liveness-from-hooks-and-process` was created in Backlog (p2, bug). The observer build task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` then moved to Done with the user's yes. Next is task `observer-file-drawer-renders-plan-markdown-wrong`. Task `observer-file-drawer-renders-plan-markdown-wrong` is fixed (uncommitted). The Details pane now renders GFM pipe tables (new parseBlocks helpers splitTableRow and readTableAlign; MarkdownBlock type "table"), inline code as `<code class="mono">`, and section headings without `## `. Fenced code and prose wrap, so the pane never scrolls sideways; a too-wide table scrolls on its own. Task-note sections holding a table render as markdown. The fixture plan gained a table, a long tree line and inline code. tsc is clean; the observer suite passes (2117); it was verified in the fixture observer. CHANGELOG [Unreleased] Fixed bullet added. The Details column and the bottom drawer then got resize handles (shared ResizeHandle). The bottom drawer's classes were renamed `av-drawer-bottom*`. Both are built, tested and verified in the fixture observer, uncommitted, awaiting the user's review. From the user's review: the handles got a visible grip. The bottom drawer now spans the full width under both columns and pushes them up when open (the user's suggestion; pushing rather than floating over them was the agent's choice, and floating is a small change if the user prefers it). Task `observer-phase-rail-blank-or-stale-when-reports-missing` (p2 bug) was filed after the live observer's rails showed partial or empty. Committed as c5032a2 (not pushed, not released); the test observer is stopped. Task `observer-file-drawer-renders-plan-markdown-wrong` moved to In Review with the user's yes. Task `observer-report-task-resumed-in-progress-at-boot` is fixed as prose: SKILL.md reporting table and Start bullet plus the aide_observer_event description now report a task taken up, even one already In Progress, as `picked`. CHANGELOG Fixed bullet added; uncommitted. The observer skill and settings design was settled as decision #85, and task `aide-observer-skill-with-serve-and-record-settings` was created for it. The report-task-resumed fix was committed as 5afd567 and its task moved to In Review.
66
+
67
+ 2026-11-24 (earlier): /aide boot (aide v0.16.1 current, outdated empty, behind null). brainMigration listed stale section `config`; the user chose to review it, and with the user's yes the `config` section of this repo's .aide/config/brain.aide was replaced with the current template text via /aide:brain config (aide_upgrade brainChange config, applied). The new text offers an npx brain launcher a switch to the global `mcpvault` command instead of a pin bump. When the global mcpvault is missing, it is now installed directly, with no npx fallback. It is a live section with no seed file. The launcher is already global (`mcpvault 'D:\Code\Me\my-brain'`), and all 12 seed files already exist in the brain, so nothing was written there. After the change, aide_info reports brain ok and brainMigration null. The brain.aide edit is uncommitted. The board check matches session.aide: In Progress is empty; `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` is still In Review although released in 0.16.1; the two approved p2 observer bugs (`observer-file-drawer-renders-plan-markdown-wrong`, `observer-report-task-resumed-in-progress-at-boot`) are in Backlog; the next step is still item 1 of "What the next agent must do".
68
+
69
+ 2026-11-24 (earlier): The designer package for the observer page is done: design/observer-page/v3/ (README designer prompt, 19 screenshots, 19 self-contained HTML snapshots, additions.css, page.css, page.aide) committed and pushed as 12dfe66; the zip design/observer-page/observer-page-v3.zip stays local, uncommitted. Global install re-confirmed at @aidemd-mcp/server@0.16.1 (latest on npm). The leftover fixture observer on port 24799 was stopped. Two new p2 bugs were filed on the board today by the user, from use in the showfold project (`observer-file-drawer-renders-plan-markdown-wrong`, `observer-report-task-resumed-in-progress-at-boot`), and the user approved working them, plus a new UI change with no board task yet (bottom-drawer resize handle and class rename).
70
+
71
+ 2026-11-24 (earlier): Released. Tag v0.16.0 (commit 5bc09a7) failed its Publish CI on Linux: the `resolveConfinedPath` test "refuses ..\x" returned `missing`, because a backslash is not a separator on Linux. Fixed by also checking the path with backslashes read as separators (src/observer/routes/getFile/resolveConfinedPath/index.ts). Shipped as 0.16.1 (commit 29e4421, tag v0.16.1); Publish CI green; npm shows 0.16.1. 0.16.0 never reached npm; the CHANGELOG has a 0.16.1 Fixed entry saying so. Global install updated to @aidemd-mcp/server@0.16.1. aidemd.dev synced headless (methodology-docs (changelog), version-metadata, skills/aide applied; site commit fb1c3aa pushed; deploy.yml run succeeded; brainMigration null). Open gap found: aide_info reports `bin/aide-tree` outdated on the site, but aide_upgrade has no category that writes the `.aide/bin/aide-tree.mjs` launcher (only init/sync install it, via src/service/install/installAideTree); old launchers still work; not fixed yet.
72
+
73
+ 2026-11-24 (earlier): The observer page rework done hand-in-hand with the user (decision #83, supersedes #82) is all built, page tests updated (587 files / 6044 tests pass, tsc clean, build ok), page spec and CHANGELOG updated; committing now. Task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` stays In Review. New backlog tasks: `observer-home-shows-a-kanban-board-that-fits-the-page` (p3) and `aide-warns-when-another-live-session-is-in-project` (p2).
74
+
75
+ 2026-11-24 (earlier): The slim waiting bar on the session page (decision #82) is built, QA'd in a real browser (PASSED) and its plan cleaned up; uncommitted. Everything else on the task is unchanged: task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` stays In Review and the rest of the observer is committed in 2165b40.
76
+
77
+ 2026-11-24 (earlier): The observer (backend + page) is built, verified and committed on main as 2165b40 ("feat(observer): one observer per machine with a live pipeline viewer page"); not pushed, not released. With the user's approval (2026-11-24) task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` moved to In Review. `.claude/settings.local.json` and `.playwright-mcp/` stay uncommitted on purpose.
78
+
79
+ 2026-11-24 (earlier): The observer (backend + page) is built and verified (decisions #75–#81). The page redesign round is built, QA'd, fixed, re-QA'd and cleaned (#81); full gate twice 556 files / 5791 tests, tsc clean.
80
+
81
+ 2026-11-23 (earlier): The new design handoff arrived and the redesign round is under way (decision #80). Stage: spec — the page's outcomes are being rewritten from the handoff. Nothing committed.
82
+
83
+ 2026-11-23 (earlier): The observer page round is built and QA'd (decision #78). The user chose a full redesign from a new design project (decision #79, prompt v2). 10 page fix items are paused into the redesign round. Nothing committed.
84
+
85
+ 2026-11-23 (earlier): The one-observer backend is complete and uncommitted (decisions #75–#77): built (7 plans / 24 steps), QA'd, fixed, re-QA passed, ephemerals cleaned; full gate tsc clean, 298 files / 4280 tests. The observer task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` stays In Progress for the UI round. src/service/observer/brief.aide is kept (approved) for that round.
86
+
87
+ 2026-11-22 (earlier): The observer backend is built, QA'd and cleaned up (uncommitted). Built: src/util (buildTreeData, countCheckboxes moved in; runtimePaths; isProcessRunning; sessionIdleLimit), tools/frontmatter + tools/cleanup on util countCheckboxes (findOpenItems deleted), service/observer/event (record/read/delete, shared schema/protocol/observerRecord/judgeLiveness/readSessionLog), kanban (board/read, task/read), status (tree, work files, session record, sessions, running work, waiting/surfaced file, event-based phase rail, history), src/types re-exports, src/observer HTTP layer (startObserver, guard, routes, SSE hub, event store, single-instance record), src/cli dispatcher + view command + explorer moved to src/cli/tree (old launchers still open the explorer via a main-script branch), src/startServer + entry via runCli, MCP tools aide_observer_init / aide_observer_start / aide_observer_event. Prose by the main agent: the three tool descriptions, SKILL.md Step 6 (observer session at boot) + 'Reporting to the observer', CHANGELOG [Unreleased] Added/Changed (no [migration]). QA: all modules passed with notes; one fix round (old launchers kept working instead of a non-existent upgrade 'bin' category; unreadable session not deletable; one shared 30-minute limit in util; observer marker/bind host in event protocol; board-read-failed reason; spawn error handling; prompt label first non-blank line; passed QA verdict no detail); re-QA passed. Quiet-tree gate: tsc clean, 265 files / 3961 tests green; earlier failures were load flakes (all passed 3/3 alone). Retro promoted to brain process/retro/2026-11-22-aidemd-observer.md. Ephemerals cleaned via aide_cleanup in util, tools/frontmatter, tools/cleanup, event, kanban, status, src/observer, src/cli, src, .aide. SKIP_DIRS was then moved to src/util/skipDirs (2026-11-23) and src/types, src/util, src/util/classify, src/tools/inspect were cleaned; only src/service/observer/brief.aide remains, kept for the UI round.
88
+
89
+ 2026-11-22 (earlier): Boot clean (aide v0.15.0, outdated empty, behind null; brainMigration lists stale section `config` — the user chose to continue without reviewing it this session). The user picked task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` (In Progress). Design per the task and the brain note projects/aidemd/pipeline-viewer/handoff.md: `aidemd-mcp view` serves a read-only local page + JSON API + SSE on a free 127.0.0.1 port, recording its URL in per-user app data (decision #62); files are the main source (scan + buildTreeData, Resume Protocol next steps, board from the brain's kanban/<tag>/<column>); live status comes from an append-only per-session event log in per-user app data (decision #62) written only by a new `aide_observer_event` MCP tool that the /aide skill calls for each action (hooks were considered and rejected, decision #59); the observer replays the session files once at start and then receives events from the MCP tool through a local endpoint and pushes them live (no file watching, #65); read-only v1. The structure gate applies (new folders); aide-architect is proposing the folder tree in structure mode. No spec written yet. Designer prompt written to the brain (projects/aidemd/pipeline-viewer/designer-prompt.md). Architect revision 3 (no hooks) approved. Structure approved (#61); runtime outside the project (#62); pipeline never depends on the viewer (#63). Revision 4 approved: one name `observer` (#61), endpoint push + file record, no watcher (#65), runtime folder + deletable sessions (#66). All eight specs confirmed (#69); strategy bodies + briefs approved (#70); plans being written: util and cleanup written (proposed), the rest in progress.
90
+
91
+ 2026-10-27 (earlier; committed and released 2026-10-28; Done 2026-10-28): Task `default-aide-and-brain-mcp-launchers-to-global-installs` (Done, p1, bug). Root cause: Windows projects set up by aide_init launch both MCP servers through `cmd /c npx -y <pkg>@<version>` and time out at session start (30s connect limit); nothing installs the packages globally at setup. A long design pass (project config file, auto/manual mode, boot-time question, per-server records, decline logic, duplicate-key handling, --local/--npx flags) was discarded by the user in favour of the minimal fix (decision #56). With the user's OK, the 6 proposed plans (src/types, src/service/install/provisionBrain, src/tools/upgrade + brief, src/service/install, src/cli/init, src) were marked abandoned and removed through aide_cleanup, and today's uncommitted edits to 8 specs were restored with git restore. Stage 1 for the reduced scope is delegated to aide-spec-writer. Investigation facts still useful: checkGlobalPackage checks `npm root -g`/<pkg>/package.json, not the bin on PATH; the CLI init used to install aide globally only on an explicit y; aide_init installs nothing itself (reports globalPackage for the agent); /aide:brain config's seeding prose checks and installs mcpvault; this repo's .mcp.json runs `aidemd-mcp` and `mcpvault <path>` bare on win32 and both work; the MCP key has always been `aide` (since 725cfb2), `aidemd-mcp` is only a second accepted name for a hand-written entry. Specs amended for #56 (cli/init, install, provisionBrain, upgrade, info; history-only negative clauses pruned at the user's request) and the upgrade and info bodies refreshed around the transit flow: a pinned npx project moves its pin once (the old server cannot switch), then the new server's upgrade offers the switch to global (agent runs npm i -g, tool rewrites the entry in place), then updates are npm i -g. The architect wrote six Shape B plans, no brief: src/types (1 step), src/service/install/provisionBrain (4), src/service/install (4), src/tools/upgrade (6), src/cli/init (3), src (1). The user approved all six ('Okay, make the change'); the orchestrator moved them to approved through aide_frontmatter. The user also asked: when it's all done, test it in a new project, every possible way it could be used. Build started. Built (one implementor per step; cli/init's three coupled steps ran in one session): src/types, provisionBrain (template always `mcpvault`; every npx mcpvault launcher is legacy with reason npx-launch and `after` = global; old config fingerprint 52ce53ec… appended, drift pin c9f83160…), install (mcpEntry() always `aidemd-mcp`; would-create steps carry globalPackage; aideMode/brainMode removed; launchModeChoices and readAidePackageVersion deleted), upgrade (npx aide entry → globalSwitch; new switchToGlobal writer re-checks the install and splices command/args under the existing key; brain launcher change targets mcpvault and refuses until mcpvault is installed globally; pin move unchanged), cli/init (ensureGlobalAide installs first and throws so nothing is written; --mode, prompts, resolveLaunchModes removed), src (aide_init schema drops the modes). Prose by the main agent: aide_init/aide_upgrade/aide_info descriptions, init --help, the template config-section prose, /aide:brain config, /aide:upgrade, aide skill boot, aide-brain-author, aide-upgrader (may run a Migrate-named package install; reports brain.aide matches for /aide:brain config), brain-aide.md, README (npx launch options removed), CHANGELOG [Unreleased] Changed/Fixed/Removed + one [migration]. QA passed on all modules (no todo.aide, no retro). End-to-end (sandboxed npm prefix; the real global install verified unchanged): scripted CLI + MCP stdio 15/15 PASS; headless agent flows: /aide:upgrade switch POSIX + Windows, failed install leaves .mcp.json untouched, /aide:brain config npx→global and fresh wiring, boot on a global project all PASS; the aide_init wizard FAILED (agent merged the entry without installing — the instruction lived only in the tool description). Fix loop: a would-create aide MCP step (and aide_upgrade's missing-entry result) whose package isn't installed now carries step-level install-first instructions (shared helper planInstallInstruction); re-QA PASS; rerun: full gate 168 files / 3161 tests green, tsc clean, wizard PASS (install runs before the merge) and its failed-install variant PASS (no merge). All plans were closed out through aide-maintainer and removed with aide_cleanup. 2026-10-28: the feature was committed as 10d12c5 "fix(install): launch the aide and brain MCP servers from global installs" (everything except .claude/settings.local.json, which stays uncommitted by design); with the user's yes the task moved In Progress → In Review. 2026-10-28: released as v0.15.0 (commit 414776f "0.15.0: launch the aide and brain MCP servers from global installs", tag v0.15.0); the CHANGELOG [Unreleased] entries moved under "## [0.15.0] - 2026-10-28". The first publish run failed only at "Wait for the version to appear on npm" (npm took over 5 minutes to list it); a rerun passed every step: npm, MCP Registry, GitHub Release. 2026-10-28: the user tested the boot upgrade path themselves in a new session in the aidemd.dev site checkout: /aide showed the v0.14.0 → v0.15.0 notice, ran the global install (global @aidemd-mcp/server is now 0.15.0, updated by that test), then /aide:upgrade synced the site's methodology files; the user reports it worked and the site is fully up to date. Site commit 080020e "chore(aide): sync methodology to 0.15.0" was pushed to main and the GitHub Pages deploy run 40727404324 succeeded. The work is released as v0.15.0. 2026-10-28: with the user's yes the task moved In Review → Done; the feature cycle is closed.
92
+
93
+ 2026-10-26 (earlier, v0.14.0 released): After the pinned-behind task's QA, an end-to-end test ran the new code as a fake 0.12.0 server over real MCP stdio (pinned cmd /c npx with CRLF+tabs: aide_info behind 0.12.0→0.13.1, 3 versions, 3 highlights; pin move changed exactly 2 bytes; unpinned, global, missing entry, invalid input, offline all correct), a real npx pre-fetch (`sync --help` → Usage:, exit 2; nonexistent version → exit 1, no Usage:), and headless `claude -p /aide` boots; the headless agent skipped the notice, so SKILL.md Step 3.1 was changed to put the notice inside the AskUserQuestion question text (or write it before the first upgrade call when the session cannot ask) and lead the outcome message with it — committed 7367af2. The user then drove an interactive /aide boot in a test project (fake 0.12.0 linked into its node_modules so the project's own npx entry ran the new code): the upgrade question carried the notice, "Upgrade (Recommended)" was answered, v0.13.1 was pre-fetched, the pin moved @0.12.0→@0.13.1 (only those bytes), and boot halted for a new session. CHANGELOG [Unreleased] moved under `## [0.14.0] - 2026-10-26`; `node scripts/publish.mjs minor` committed b62c696 ("0.14.0: …"), tagged v0.14.0 and pushed main (bf2e89e..b62c696, carrying c6af03e, 12a5c3a, 5bb3c12, 7367af2). Publish and CI workflows green; npm serves 0.14.0; global install 0.14.0. aidemd.dev synced headless to 0.14.0 (site commit 0c3fa7d: .aide/docs/changelog.md, .aide/versions.json, commands upgrade.md + brain.md, skills aide SKILL.md), deploy green; its brainMigration still lists kanban-index. Side effect during test setup: an `npm install` run from the test folder (no package.json there) landed in the user's home folder and created C:\Users\bestb\node_modules (all entries from 16:59 2026-10-26); the junction inside it was removed safely, but deleting the folder was blocked by the auto-mode classifier — the user was asked to delete it themselves.
94
+
95
+ 2026-10-26 (earlier, pinned-behind task done; unreleased): Built and QA passed. aide_info `behind` now covers every launch (global or npx, pinned or not), judged on the running serverVersion; shape `{ installed, latest, launch, versionsBehind, highlights }`; one registry request (registry.npmjs.org abbreviated metadata, 1.5 s) gives latest + version list; highlights (≤3, one line ≤120 chars, Added→Fixed→Changed, newest first, no [migration]) from https://cdn.jsdelivr.net/npm/@aidemd-mcp/server@<latest>/CHANGELOG.md (2 s), only when behind; any failure silent. `outdated` unchanged (judged against the running server). aide_upgrade gained `targetVersion` (exact x.y.z; valid with no category or `mcp`): detection reports `pinMove: { from, to }` for a local aide entry whose pin is older/missing/non-exact (never a prescription); `category: "mcp"` + targetVersion makes the tool rewrite only the version token in .mcp.json (yaml.parseDocument byte range, re-verified with changesOnlyThePin, refuses on a changed pin or unsafe edit); never moves a pin ahead of the target back (prerelease ahead judged by x.y.z — fix-loop step 6); global/custom/missing/legacy-key paths unchanged; no-target results identical to before. readNpxPackageSpec + isOlderVersion lifted to src/service/install/shared (provisionBrain uses them). Prose by the main agent: /aide skill boot Step 3 (behind → short notice → global `npm i -g`, local: pre-fetch `npx -y @aidemd-mcp/server@{latest} sync --help` (exits 2 by design; success = prints `Usage:`), only then `aide_upgrade({ category: "mcp", targetVersion })`, then halt for a new session; outdated → /aide:upgrade → halt for a new session if anything changed); /aide:upgrade mcp handling + final new-session note; aide_info and aide_upgrade descriptions in src/index.ts; CHANGELOG [Unreleased] Added/Changed/Fixed (no [migration]: no file format change). Specs: src/tools/info/.aide frontmatter re-amended + Strategy body (7 decisions); src/tools/upgrade/.aide desired[5]/undesired[5] amended + body updated. Two early plans (src/service/install, provisionBrain lift for info) abandoned with the user's OK and removed. QA: info passed with notes (no todo); upgrade QA found 2 items (prose tripped retiredVocabulary hand-edit rule → reworded to "yourself"; prerelease pin ahead moved down → isPinBehind step 6), both fixed, re-QA PASS; full suite 3118/3119 (only the known singleSource load flake, passes alone), tsc clean. All plans/briefs/todo recorded completed and removed via aide_cleanup (src/tools/upgrade, src/tools/info, src/types, src/service/install, src/service/install/provisionBrain, src). Retro: process/retro/2026-10-26-aidemd-pinned-behind-and-pin-move.md.
96
+
97
+ 2026-10-26 (v0.13.1 released; site live; brain config pending restart): v0.13.1 released with the user's yes — release commit 7b5740f (package.json/server.json/README pins), tag v0.13.1, pushed main bcc819d..7b5740f (carrying 7b8756d Read entries, c8d9dc2 template slug rule, bcc819d CLAUDE.md AIDE-first, d657a26 brain config seed files). The release commit went out WITHOUT the CHANGELOG `## [0.13.1]` heading (staged in an attempt that never ran) — the 0.13.1 entries, including the kanban-index [migration], shipped under `## [Unreleased]`; fixed in the repo by c6af03e (ships with the next release). Publish green; npm 0.13.1; global install 0.13.1. aidemd.dev synced headless to 0.13.1 (site commit 25c46bd: plan-aide.md, changelog.md, build.md, brain.md, aide-architect, aide-implementor, aide-auditor, aide SKILL.md, versions.json) and its deploy is green; its aide_info reports kanban-index in brainMigration.staleSections — the new detection works on a real host. Pending, needs the user: restart Claude Code (this session's aide server is the global install), then /aide:brain config here (and in aidemd.dev) to take the new kanban-index section; the user's live brain kanban/kanban.md already has the rule. Later 2026-10-26: /aide:brain config Step 5b gained the case "brain file already matches the new section → tell the user and write nothing" (it used to fall into the "edited" branch and ask), committed and pushed as 12a5c3a with a CHANGELOG [Unreleased] Fixed bullet; unreleased (ships next release; applies in this repo immediately since its command file is the source). The session's work is otherwise complete; the only pending step is the user's: restart Claude Code, run /aide:brain config here to take the new kanban-index section (the brain file is already up to date and will be skipped), then close `ship-never-truncate-slug-rule-in-brain-template`. The conformance task's design now includes plan git checkpoints, a squash caveat and a brain archive of plans at close-out (details on the task). Later 2026-10-26: found that aide_info never tells a pinned project it is behind (resolveBehind returns null unless the aide entry launches the global install, `outdated` compares against the pinned server's own manifest so it stays empty, and boot only suggests /aide:upgrade when `outdated` is non-empty — affecting users who chose local, declined the global install, or set up with no interactive terminal, where init falls back to local without anyone choosing it); with the user's OK, task `aide-info-never-tells-a-pinned-project-it-is-behind` was created (Todo, p1, bug).
98
+
99
+ 2026-10-26 (earlier, 0.13.1 ready; publish blocked pending the user's yes): the user wants the never-truncate slug rule to reach every user's brain.aide AND their seeded brain file, released as a change. Found a gap: /aide:brain config Step 5b replaced an outdated seed section in brain.aide but never updated the seeded brain file (Step 5/6 skip existing seeds), so agents kept reading the old text. Fixed in .claude/commands/aide/brain.md Step 5b: after each accepted seed section, read the file at its seedPath; if it matches the old section (ignoring line endings, whitespace, frontmatter) offer a plain update; if the user edited it, show both and default to keep; brain tools not loaded → tell the user to re-run after a restart; live sections have no seed file. CHANGELOG: Changed bullet for that, plus a [migration] for kanban-index (Detect: aide_info brainMigration.staleSections lists kanban-index; Migrate: /aide:brain config Step 5b via aide_upgrade brain brainChange kanban-index, then the seed file; Confirm: per file). Full suite 2988 green. Committed d657a26 (unpushed). Release 0.13.1 prepared: CHANGELOG `## [0.13.1] - 2026-10-26` heading staged, but `node scripts/publish.mjs patch "never-truncate slug rule in the brain template; brain config updates seeded files; Read entries as exact addresses"` was BLOCKED by the permission classifier (public surface); awaiting the user's explicit yes. 0.13.1 will carry 7b8756d (Read entries), c8d9dc2 (template slug rule), bcc819d (CLAUDE.md AIDE-first rule), d657a26 (brain config seed files). This session's aide server is the global aidemd-mcp, so after publish + npm i -g the user must restart Claude Code before /aide:brain config here sees the new template.
100
+
101
+ 2026-10-26 (template slug rule committed; sync audit; AIDE-first rule): task `ship-never-truncate-slug-rule-in-brain-template` part 1 is done: the bundled template's kanban-index seed gained the never-truncate slug bullet; its previous fingerprint 17dbab1c… was appended to outdatedTemplateSections (seenIn "82cab85 through v0.13.0") and the drift pin updated to 3a720167…; CHANGELOG [Unreleased] Changed bullet; full suite 2988 green, tsc clean; committed and pushed as c8d9dc2. Part 2 (offer the new kanban-index text to this repo's .aide/config/brain.aide) waits for the next release, then goes through /aide:brain config with the user's yes. Sync audit (user asked "is there anything else we're out of sync on?"): the global ~/.claude kanban skill and kanban-maintainer agent are byte-identical to the repo's; this repo's brain.aide matches the template in every section except kanban-index (today's change); the user's live brain kanban index and all 7 guides match the template seeds; coding-playbook/study-playbook in the brain has its four headings one level deeper (### vs ##), same wording — cosmetic; playbook-index and research-index are the user's own content (expected). New rule (user, 2026-10-26), written into this repo's CLAUDE.md as "## AIDE First: Never Change a Shipped Copy Directly": any change to methodology that also lives in the brain's seeded notes, the user's global kanban skill/agent, or host projects' installed files starts in this repo's canonical source (template section with fingerprint append, .claude/ file, .aide/docs/ doc), is logged in CHANGELOG [Unreleased] (with [migration] when a file goes out of date), and only then reaches the copies through their owning tools (/aide:upgrade, /aide:brain config, byte-for-byte copy of the global skill/agent). A copy changed first for an urgent fix gets the same change here and a log entry in the same piece of work. The CLAUDE.md edit is uncommitted at the time of writing.
102
+
103
+ 2026-10-26 (conformance task created): the Read-entry fix is committed and pushed as 7b8756d (unreleased; ships in the next release). The user decided NOT to add an automatic playbook-conformance pass after every QA ("the new rules should solve the problem"). Instead a new task was created: `track-playbook-conformance-per-module` (Todo, p2, feature) — each intent spec records when it was last checked against the playbook (governed field through aide_frontmatter, set by the auditor after a scoped check; staleness judged against the module's git history); playbook pointers survive plan deletion in the orchestrator's header comment (`@playbook "<entry name>" <address>`, written by the implementor from the plan's Read entries; the auditor checks against exactly those and flags any other entry it thinks applies); aide_discover shows the last-check info; the main agent suggests a few modules to check with reasons, never runs a check unasked and never a whole-app pass; checks are scoped /aide:refactor runs on Sonnet; [migration] entries backfill the field and re-resolve Read addresses in hosts' in-flight plans. Open: field shape, header tag format, when the main agent suggests. Later 2026-10-26: the task slug `track-playbook-conformance-per-module-and-suggest-where-to-c` (cut off at the 60-character slug limit) was renamed, with the user's OK, to `track-playbook-conformance-per-module` (Todo, p2, feature); title unchanged; no links to the old slug found. The user asked that agents never cut names off again. The live brain kanban index (kanban/kanban.md, Tasks) now adds: "Never cut a slug off at the limit. When the title's slug would run past 60 characters, write a shorter phrase that still says what the task is and ends on a whole word … The title keeps its full wording; only the slug is shortened." Not yet changed (follow-up): the same rule in the bundled brain template's kanban hub seed (src/service/install/provisionBrain/obsidianBrainAideTemplate/kanbanSeeds/hub, a template section edit — pipeline, and the old fingerprint must be appended so existing configs are still recognized) and this repo's .aide/config/brain.aide kanban-hub section (changes only through /aide:brain config).
104
+
105
+ 2026-10-26 (Read-entry addressing fix): diagnosed why an implementor skipped playbook entries. Root cause: plans write `Read:` entries in a shape the brain's read tool rejects — e.g. `coding-playbook/workflow/type-system` with no `.md`, or `…/conventions#Early Returns Over Nesting` with an anchor — so the first read fails "File not found"; most implementors recovered (added .md / browsed), one fell back on the surrounding code's style; nothing asked for a report and nobody checked. User direction: the architect must write the path exactly as the tool requires, generically, so no prose changes per MCP integration. Fix (prose by the main agent, uncommitted at the time of writing): aide-architect and aide-auditor write each Read entry as the exact address they loaded it with, copied from their own successful read (never retyped from memory, docs examples or links); sections named in words, never as anchors. plan-aide.md rule + examples rewritten as placeholders (`<address of … entry>`). aide-implementor: pass addresses through unchanged; an entry that won't load is found via the brain's navigation or the step stops; never substitute nearby code style; new "Playbook entries" item in its return (loaded / not loaded); fix mode loads entries too. /aide skill Stage 5 step 3 and /aide:build check that report and re-run a step whose entries weren't loaded (or send a bad address back to the architect). CHANGELOG [Unreleased] Fixed bullet. Guard/install/upgrade tests green (1219). The user later decided against an automatic post-QA check (see latest).
106
+
107
+ 2026-10-26 (earlier, release): v0.13.0 released with the user's yes. publish.mjs minor committed fecac4b ("0.13.0: no plan without an intent spec beside it; orphaned-spec judged by code"; CHANGELOG heading [0.13.0] - 2026-10-26, package.json/server.json/README pins), tagged v0.13.0 and pushed main (0f40fc9..fecac4b, carrying dc41576 and 21871a0). The Publish workflow is green; npm serves 0.13.0; global install 0.13.0. aidemd.dev synced headless to 0.13.0 (site commit a8365d9: methodology-docs aide-spec/aide-template/plan-aide/changelog, version-metadata, commands plan.md, agents aide-architect, skills aide; pointer-stub/ide/readme matched; brainMigration null) and its deploy is green. Task `every-plan-requires-an-intent-spec-beside-it` moved to Done by the user, with a closing stash; In Progress is empty.
108
+
109
+ 2026-10-26 (earlier, built, QA passed, committed): Task `every-plan-requires-an-intent-spec-beside-it` built, QA passed with notes and no todo.aide (no retro), all five plans recorded completed and removed through aide_cleanup (src/tools/scaffold, src/types, src/util/classify, src/tools/validate, src), committed as dc41576 (unpushed, unreleased). Gate: tsc clean, full suite 157 files / 2988 tests. Built: aide_scaffold refuses a plan in a folder with no .aide/intent.aide (hasIntentSpec; nothing created); plan template without description:; "plan-without-spec" finding kind; classify's holdsCode/isCodeFile and the new orphaned-spec rule (only with .aide/intent.aide present, never the project root .aide folder, only when folder + subfolders hold no code; code = any file but *.aide, Markdown and dot-files; dot-folders and SKIP_DIRS skipped); validate's checkPlanSpec; description-pin tests. User decisions folded in: root intent spec exempt ("yeah aide folder doesn't need code"), dot-files ignored. New specs src/types/.aide and src/util/classify/.aide. QA ran local-source validate on this repo: only .aide/docs is orphaned now (accepted — Markdown by design); src/cli, scripts, .aide, .aide/config, .claude no longer flagged; no plan-without-spec. QA notes fixed as prose by the main agent: .aide/tools.md aide_validate section, aide-template.md and aide-spec.md placement wording. Also prose earlier: aide-spec.md, plan-aide.md, aide-architect, /aide:plan, /aide skill Stage 4, aide_scaffold/aide_validate descriptions, CHANGELOG [Unreleased] (Added plan-without-spec; Changed scaffold refusal, spec placement, orphan rule; Fixed plan template). Not added: a [migration] entry for host plans that sit in spec-less folders (the fix needs a real spec, so it isn't mechanical) — open question for the user.
110
+
111
+ 2026-10-26 (earlier, plans): (a) aidemd.dev: the site's deploy.yml pinned both jobs to runs-on: ubuntu-24.04 (site commit 5000bd8, pushed, user-approved); the deploy is green, so the site is live on 0.12.1. (b) Plan-requires-spec task: the user confirmed the validate and scaffold outcomes. The architect planned: src/tools/scaffold/plan.aide (approved by the user and BUILT: new helper hasIntentSpec; a plan in a folder with no .aide/intent.aide is refused before any mkdir with the line "Refused plan.aide — <dir> holds no intent spec (.aide or intent.aide); write the folder's intent spec first, then scaffold the plan"; the plan template no longer writes description:; scaffold 95 tests, full suite 2917, tsc clean), src/tools/validate/plan.aide (proposed; new helper checkPlanSpec and the plan-without-spec warning), src/plan.aide (proposed; pins both tool descriptions). (c) The architect applied the new rule to this repo: src/types and src/util/classify had no spec. The user agreed their intents and decided: code in subfolders counts, and code = any file except *.aide and Markdown. Spec writer created src/types/.aide and src/util/classify/.aide (frontmatter only, unreviewed). The architect then planned src/types/plan.aide (add "plan-without-spec" to the ValidationWarning kind union) and src/util/classify/plan.aide (new holdsCode + isCodeFile helpers, recursive, skipping SKIP_DIRS and dot-folders; orphaned-spec runs only when .aide/intent.aide is present; new message "Spec has nothing to govern: this folder and its subfolders hold no code (only AIDE files and Markdown)."), both proposed. (d) Build order: scaffold (done) → types → classify → validate step 1 (needs types) and step 2 (needs classify) → main agent edits the aide_validate description → src → CHANGELOG → QA. The main agent already edited the aide_scaffold description in src/index.ts (plan refused without a spec; root plans use directory ".aide"). (e) Open points raised by the architect: the root intent spec .aide/intent.aide is judged by what's in .aide/ (not flagged only because .aide/bin exists); dot-files (e.g. .DS_Store) count as code under the literal rule.
112
+
113
+ 2026-10-26 (earlier): (a) The root-intent task `aide-scaffold-writes-the-root-intent-as-aide-aide-instead-of` moved to Done (user OK). The user logged the CLI in from a standalone terminal; `claude auth status` now reports loggedIn:true, and the aidemd.dev headless sync for 0.12.1 is running. (b) New task `every-plan-requires-an-intent-spec-beside-it` (In Progress, p1, bug), created by the user. Rule (user): no code without a plan, no plan without an intent spec beside it. Decisions (user, 2026-10-26; decision #42): any folder that gets its own plan gets an intent spec (frontmatter only is enough — e.g. a shared types folder, a shared-helpers folder, single-file modules); helper folders inside a planned module do not; aide_scaffold type=plan refuses when the folder has no intent spec (a research-only folder doesn't count), naming the missing spec; aide_validate flags any plan.aide with no spec beside it, and reports a spec as orphaned only when its folder holds no code (never decided by a plan's presence, since plans are deleted after QA). (c) Prose done by the main agent (uncommitted): aide-spec.md "Where .aide Files Live" + placement rule + "When to Write a .aide" table; plan-aide.md (new "No plan without a spec" rule, multi-plan wording, project-structure placement lines); aide-architect (No plan without a spec rule, "Modules needing a spec first" return item, placement line); /aide:plan checklist; /aide skill Stage 4. (d) Stage 1: aide-spec-writer amended src/tools/validate/.aide (description adds "plans with no spec"; new desired: plan with no spec is drift; spec orphaned only when its folder holds no code; new undesired: legitimate spec on a planned module reported as orphaned; alignment aligned → unreviewed) and src/tools/scaffold/.aide (intent adds the plan rule; desired[4] merged with the old one-line-per-action outcome; new desired[6] plan only beside an intent spec, else refused naming the missing spec; undesired[4] merged with the old install/boot copy outcome; new undesired[6] plan in a spec-less or research-only folder, or the rule leaking to other types). Both Research no / Strategy no. Awaiting the user's confirmation. (e) Note: the tool help text for aide_validate in src/index.ts still defines orphaned specs as "in folders with no orchestrator" — update with the build. (f) The aidemd.dev headless sync to 0.12.1 succeeded: serverVersion 0.12.1; applied pointer-stub (CLAUDE.md), methodology-docs (8 updated + changelog.md created), commands (5), agents (7 updated + aide-upgrader created), skills (2), version-metadata; ide/readme/mcp matched; brain untouched; site commit 835109a pushed to main; brainMigration null. BUT the site's GitHub Pages deploy run (40336209154) FAILED at "Install Playwright browsers": GitHub's ubuntu-latest moved to Ubuntu 26.04 (from 2026-10-19) and Playwright 1.59.1 does not support chromium on ubuntu26.04-x64. Not caused by the sync — any push to the site fails until the site's deploy.yml pins `runs-on: ubuntu-24.04` or Playwright is upgraded to a version supporting 26.04. That is a change in the site repo; awaiting the user's call (this repo's rule is never to hand-edit the site's files from this session).
114
+
115
+ 2026-10-25 (later, release): With the user's yes, 0.12.1 was published. publish.mjs committed 4352788 ("0.12.1: scaffold writes the root intent as .aide/intent.aide and never renames the .aide folder; structure gate"; CHANGELOG heading + package.json/server.json/8 README pins), tagged v0.12.1 and pushed main (1ef7aca..4352788, carrying 3e9bcbe structure gate, the session commits, 516fe5a maintainer prose, c84d27c scaffold fix). The Publish workflow passed and npm serves 0.12.1. Global install updated to @aidemd-mcp/server 0.12.1. The aidemd.dev sync is NOT done: `claude auth status` from this session's shell still reports loggedIn:false.
116
+
117
+ 2026-10-25 (earlier, build): The root-intent fix is built and QA passed with no todo.aide (no retro). Built: src/tools/scaffold — new helpers resolveSpecFolder and placeRootIntent, existingAideFiles counts files only, intent/research/both resolve "." and ".aide" to the project's .aide folder, the root spec is always .aide/intent.aide, a bare .aide/.aide is renamed with content kept; src/index.test.ts pins the aide_scaffold description. Gate: tsc clean, full suite 153 files / 2899 tests; QA ran live against local source in temp projects (the .aide/ folder is no longer renamed by research/both at "."). Prose by the main agent: aide_scaffold description and directory input in src/index.ts, aide-spec.md bootstrapping (aide_init does not create the root intent; the spec writer does with aide_scaffold), aide-spec-writer + /aide:spec leave the filename to scaffold, CHANGELOG Changed/Fixed + [migration] (Detect .aide/.aide with no .aide/intent.aide; Migrate aide_scaffold({ directory: ".aide", type: "intent" }); Confirm once, as a batch). Both plans recorded completed and removed through aide_cleanup (src/tools/scaffold, src). Committed as c84d27c. Released afterwards as 0.12.1 (see latest). Follow-up found: aide_scaffold type=plan writes a `description:` frontmatter field that plan-aide.md forbids (architect had to remove it from both plans).
118
+
119
+ 2026-10-25 (earlier, Stage 4): The user confirmed the src/tools/scaffold/.aide frontmatter, and that agents never choose the name (research after intent is already handled by scaffold's rename). Stage 4: aide-architect wrote two Shape B plans, both proposed, no brief: src/tools/scaffold/plan.aide (3 steps; step 3 has 3a–3d) and src/plan.aide (1 step: a test in src/index.test.ts pinning the aide_scaffold registered description — it must contain `.aide/intent.aide`, `project root intent spec` and `research.aide`; build it only after the main agent edits that description). Planning found a second bug, confirmed in a temp project: existingAideFiles matches any name ending in `.aide`, so at directory "." it counts the `.aide/` folder as a spec — type intent reports a false skip, and type research/both RENAMES the whole `.aide/` folder to `intent.aide/`. Key plan decisions are in decision #41. Prose follow-ups for the main agent: the src/index.ts aide_scaffold description; CHANGELOG [Unreleased] Fixed + [migration] (Detect: .aide/.aide exists and .aide/intent.aide does not; Migrate: aide_scaffold({ directory: ".aide", type: "intent" }); Confirm: once, as a batch); the aide-spec.md bootstrapping paragraph; the aide-spec-writer naming bullets. Awaiting the user's plan approval. The `.aide/` folder rename bug was then traced and reproduced in production. The code dates from c123937 (2026-04-09, "Implement all MCP tools and lib modules with tests"), so every published version from v0.3.1 to v0.12.0 has it. Reproduced with the globally installed 0.12.0 dist in a temp project: `aide_scaffold({ directory: ".", type: "research" })` printed "Renamed .aide → intent.aide / Created research.aide" and left the project root holding `intent.aide/` (the whole methodology folder, with docs/ and session.aide inside, contents intact) plus `research.aide`. Nothing is deleted — the folder is moved — so an affected project recovers by renaming `intent.aide/` back to `.aide/`. Trigger: type research or both with directory "." (project-root research); type intent at "." only reports a false skip. The fix is already in the proposed src/tools/scaffold plan.
120
+
121
+ 2026-10-25 (earlier, Stage 1): A new pipeline started for the root-intent bug. The user decided aide_scaffold writes the project root intent spec as `.aide/intent.aide` (their reasoning: intent.aide is just .aide, but the explicit name is used where many other .aide files sit beside it, as in the project's .aide folder). A [migration] entry ships with it so /aide:upgrade offers to rename a host root spec left as `.aide/.aide` (no `.aide/intent.aide`) — the rename is done by the same aide_scaffold call, mirroring its research-triggered rename. Task `aide-scaffold-writes-the-root-intent-as-aide-aide-instead-of` created (In Progress, p1, bug). Stage 1: aide-spec-writer amended src/tools/scaffold/.aide frontmatter (intent names the root rule; desired[0] explicit form for the root, desired[1] adds the root rename keeping content unless intent.aide exists; undesired[0] merged the two old naming failures; new undesired[1]: a root spec under the default name isn't recognized as the root, so ancestor chains lose their top). Alignment unreviewed. Signals: Research no, Strategy no → Shape B plan next. Awaiting the user's confirmation of the frontmatter.
122
+
123
+ 2026-10-25 (later): (a) The user logged in, but the headless aidemd.dev sync is still blocked. From this session's shell, `claude auth status` reports loggedIn:false, and `claude -p` says "Not logged in", even with every inherited CLAUDE_*/ANTHROPIC_* variable unset. ~/.claude/.credentials.json was updated at 15:02 and has a claudeAiOauth entry, but its expiresAt is empty, so the CLI does not accept it. The fix is to log in from a standalone terminal outside the Claude desktop app (`claude`, then /login), then rerun the sync. (b) Prose fix: aide-maintainer now shows worked aide_frontmatter and aide_cleanup calls with `path` at the top of its removal section. CHANGELOG [Unreleased] has a Changed bullet for it. Guard and installAgents tests are green, uncommitted at the time of writing. (c) Finding: nothing creates the root intent spec the docs promise. aide-spec.md's "Bootstrapping a project" says aide_init creates .aide/intent.aide, but aide_init has no root-intent step. aide_scaffold({ directory: ".aide", type: "intent" }) writes `.aide/.aide`, not `.aide/intent.aide` (verified against local source in a temp project), because the intent filename is `.aide` unless research.aide sits beside it. So a spec writer following the docs would produce `.aide/.aide`. This is a behavior bug in aide_scaffold (pipeline), and the aide-spec.md text waits on it. The user's own reading is that scaffold is what creates it.
124
+
125
+ 2026-10-25, v0.12.0 close-out (user-approved):
126
+
127
+ - The orchestrator moved 13 plans, 1 brief and 6 todo lists to completed through aide_frontmatter (scaffold's todo went proposed → approved → completed, approved by the orchestrator under the autonomous fix-loop rule).
128
+ - src/tools/validate's 3 out-of-scope items became Backlog p2 tasks; its todo was marked abandoned with the user's OK and the module was cleaned. No ephemerals remain.
129
+ - Retros promoted to the brain at process/retro/2026-10-25-aidemd-status-model-and-session-record.md (cross-cutting lessons + per module).
130
+ - aide-maintainer cleanup via aide_cleanup CLEANED 12 modules: src/tools/frontmatter (plan, brief, todo), src/tools/scaffold, src/cli/init, src/tools/cleanup, src/tools/discover, src (plan + todo each), src/service/install, src/service/install/initContent, installAgents, installMethodologyDocs, src/tools/upgrade/buildVersionsMeta, .aide (plan only). src/tools/validate was cleaned too (13 modules in all).
131
+ - Observed: 4 of 12 fresh maintainers first called aide_cleanup (and one aide_frontmatter) with no arguments, rejected by schema validation, then retried with `path` — fixed 2026-10-25: aide-maintainer now shows worked calls with `path`.
132
+ - Both feature tasks (the session task and the scaffold P1 bug) moved to Done by the user; In Progress is empty.
133
+
134
+ 2026-10-25: (a) The aidemd.dev headless sync was retried and failed again: `claude auth status` from the shell reports loggedIn:false for the npm-global CLI at C:/Users/bestb/AppData/Roaming/npm/claude (v2.1.195), even though the user said they logged in — likely a different install/profile. The user must run `claude auth login` (or `claude /login`) for that CLI, then the sync reruns. (b) Task `architect-sets-the-folder-structure-before-any-spec-below-th` is implemented as prose by the main agent (no pipeline, per process discipline), approved by the user and committed on main (unpushed, unreleased): the aide skill (structure gate section before Stage 1, delegation list, explicit routing, resume table rows for missing root intent and unsettled tree, Stage 1 interview note, rules); the aide-architect agent (structure mode: returns project tree, entity model, playbook mapping, decisions, spec order, open questions; writes no file; plans must fit the approved tree); the aide-spec-writer agent and /aide:spec (below the root, the folder comes from the approved tree, else return to the orchestrator; child-spec splits go through structure mode); docs index.md (architect row), aide-spec.md (bootstrapping paragraph), plan-aide.md (rule: fits the approved project tree); CHANGELOG [Unreleased] Added bullet. No format change, so no [migration] entry. Guard tests and the install/cli-init/upgrade suites are green (1353 tests).
135
+
136
+ v0.12.0 is released. The feature commit is 2421374, the release commit de56e49, the tag v0.12.0; Publish and CI are green and npm serves 0.12.0. The published dist/versions.json has 46 artifacts, including docs/changelog and agents/aide/aide-upgrader, and the package ships CHANGELOG.md. The global install is @aidemd-mcp/server 0.12.0. The registration plans (root package.json files, initContent registry with the aide-upgrader agent and the changelog doc from the root CHANGELOG.md, installAgents/installMethodologyDocs tests, the buildVersionsMeta release gate) were built and QA passed with no todo. Before release the full suite was 2871 green twice, tsc clean, build OK. The aidemd.dev sync is BLOCKED: the headless `claude -p` in the site folder failed with 'Not logged in · Please run /login'. The user must log the CLI in, then rerun the sync. The site's files were not hand-edited.
137
+
138
+ Task `let-session-aide-exist-without-a-linked-kanban-task` (Done), with the P1 bug `aide-scaffold-overwrites-existing-files` folded in (Done). The user redesigned the feature on 2026-10-25. The session record is a working file like a plan or todo list, not methodology, so it comes from aide_scaffold. aide_scaffold gets type "session" (always .aide/session.aide), and its blank template is the one source of the placeholder. aide_scaffold never overwrites any file of any type. aide_init tells the agent to call aide_scaffold type=session instead of writing the file itself, and /aide boot calls the same tool when the file is missing. aide_cleanup removes a plan/todo/brief only when it is fully checked OR carries `status: abandoned` in the file. The agent sets that mark only after the user discards the work. The rule is per file, an abandoned plan takes its brief, and allowEmptyPlan is removed. The earlier three aide_init plans (methodology-category seed step) were discarded and, with the user's OK, shell-deleted once, because aide_cleanup can't remove unbuilt plans yet. Specs amended and approved: src/tools/scaffold/.aide, src/tools/cleanup/.aide, src/service/install/.aide.
139
+
140
+ This repo's stray `.aide/versions.json` (`{}`) came from the cli/init integration tests running a real init in the repo. That's fixed (see above), and a full test run no longer creates it.
141
+
142
+ v0.11.0 is released (release commit 566a5a5, tag v0.11.0; Publish and CI workflows green; npm serves 0.11.0). It ships versions manifest hygiene (260c82e) and the aide-brain-author skill with read-only aide_brain modes (6d85560).
143
+
144
+ At that release the global install went to @aidemd-mcp/server 0.11.0. Its published dist/versions.json had 44 entries with 22 distinct sourceCommits and previousCommit on 41, and included skills/aide-brain-author. It was the first full-history CI manifest, so the fetch-depth fix is confirmed in real CI.
145
+
146
+ aidemd.dev was synced headless to 0.11.0 (site commit d956b97: methodology-docs, version-metadata, commands, agents and skills, including the new aide-brain-author skill) and deployed; GitHub Pages is green. Its brainMigration is null.
147
+
148
+ v0.11.1 is released: fix commit 08807f9, then the release commit and tag v0.11.1, with Publish and CI green and npm serving 0.11.1. aide_cleanup with no plan.aide now removes what is present when every file it would remove is fully checked.
149
+
150
+ - A brief.aide with no plan, a todo.aide with no checkboxes and no plan, and a folder with no ephemerals are refused. Missing and outside paths stay refused.
151
+ - Folders with a plan.aide behave as before. allowEmptyPlan has no effect where there is no plan.
152
+ - The refusal kinds no-ephemerals, brief-without-plan and todo-without-checkboxes replace no-plan.
153
+ - Prose updated: tool description, aide-maintainer, the aide skill's Completion step, README, and the todo/plan/brief docs. todo-aide.md says QA may write todo.aide beside code planned in another module.
154
+ - Gate: tsc 0, 2373 tests, build OK. QA passed with no todo.aide. Ephemerals were cleaned in src/tools/cleanup, src/types and src.
155
+
156
+ At that release the global install went to 0.11.1. aidemd.dev was synced headless (site commit 04232be) and deployed; Pages is green and brainMigration is null. The user said not to touch private-report-server: the orphan todo.aide there is theirs to clean up.
157
+
158
+ Feature `brain-authoring-skill-create-a-brain-aide-for-any-backend` is built and QA passed with notes; no todo.aide.
159
+
160
+ What landed (commit 6d85560, released in v0.11.0):
161
+
162
+ - aide_brain read-only modes per decision #26: template, contract and draft; the host read is unchanged.
163
+ - launcherPurpose in brainContract.
164
+ - Result types in src/types.
165
+ - The `aide-brain-author` skill, registered in initContent (6 skills).
166
+ - /aide:brain config create (non-default backend) and custom-backend repair now hand off to the skill.
167
+ - The upgrade adapt/missing messages point to the skill.
168
+ - Docs: index.md (six skills), brain-aide.md (aide_brain parameters section, lifecycle), README, the brain skill description.
169
+
170
+ Gate: tsc 0; 2336 tests; build OK. Ephemerals were removed in src/tools/brain (plan + brief), src/service/brainContract, src/types, src/service/install/initContent, src/tools/upgrade/brainCategory and src.
171
+
172
+ The aide-maintainer prose now names aide_cleanup's `path` parameter; all 6 maintainers had guessed a wrong name first.
173
+
174
+ Rebuild after commit: versions.json has 44 artifacts, including the new skill.
175
+
176
+ Feature `versions-manifest-release-hygiene` (Done) is built, has passed QA, and is committed on main (260c82e), released in v0.11.0.
177
+
178
+ What landed:
179
+
180
+ - New build-time helper assertFullClone (src/tools/upgrade/buildVersionsMeta/assertFullClone) with 5 tests. scripts/build-versions.ts exits 1 on a shallow or unknown-depth clone.
181
+ - `fetch-depth: 0` in publish.yml and ci.yml.
182
+ - package.json: a `clean` script (node fs.rmSync) runs first in `build`. prepublishOnly is `npm run build`. files gets "!.aide/versions.json".
183
+ - .aide/versions.json removed from git and gitignored.
184
+
185
+ Gate: tsc 0; 2160 tests; the clean build removes stale dist files; dist/versions.json has 43 entries with 22 distinct sourceCommits and previousCommit on 41; a real depth-1 clone aborts the build; npm pack excludes .aide/versions.json even when present.
186
+
187
+ QA passed with no todo.aide (no retro). plan.aide was removed through aide_cleanup. With the stale host file gone, aide_info in this repo reports no outdated artifacts.
188
+
189
+ User impact (corrected with the user, 2026-10-10): the recurring 'outdated' prompt happened only in this repo. Its stale committed .aide/versions.json was never rewritten, because this repo is never upgraded onto itself. In host projects the prompt shows once per release and accepting the upgrade clears it. The depth-1 stamping only inflates that one prompt's count, all 43 instead of just the changed artifacts, so it is cosmetic. The in-repo fix is complete without a publish. The full-history manifest is released in v0.11.0.
190
+
191
+ Previous releases: v0.10.4 (session.aide is the full session record), v0.10.3 (boot upgrade gate), v0.10.2 (content-free brain responses), v0.10.1 a broken tag; the global install went to 0.10.4 then; aidemd.dev synced to 0.10.4 (site commit 160ad91).
192
+
193
+ Final status model (user, 2026-10-25): specs carry `alignment` (unreviewed | aligned | misaligned; editing a spec resets it to unreviewed). Plans, briefs AND todo lists share ONE lifecycle: proposed → approved → completed, approved → proposed when revised, proposed|approved → abandoned. completed and abandoned are final, and `in-flight` was retired. An approved plan means its implementation is in flight. A brief is approved with its plan and completes after it. QA's todo list needs approval before the fix loop runs. Building needs an approved plan (and brief); fixing needs an approved todo list. The user approved the plans: 9 plans in build order frontmatter → scaffold → install → cli/init → buildVersionsMeta → cleanup → discover → validate → src, plus the shared src/tools/frontmatter/brief.aide. Bootstrap exception: aide_frontmatter doesn't exist yet, so the architect set `status: approved` by hand, once, on the 9 plans and the brief. The build runs one implementor per numbered step.
194
+
195
+ ## Kanban
196
+
197
+ The tasks on the board this work touches, in work order; the full record of the work lives in this file.
198
+
199
+ **Work order set by the user, 2026-11-27** (from the priorities page export; the board's `priority` field carries the groups, but the order inside each group lives only here). Work top-down.
200
+
201
+ p0 — critical: 1. the private legal task (see the brain note) · 2. move-aidemd-mcp-npm-package-to-lowmeadow-llc · 3. github-npm-and-mcp-registry-discovery-metadata
202
+ p1 — high: 4. remote-observer-hosted-web-interface · 5. observer-terminal-in-the-bottom-drawer · 6. observer-event-log-keeps-file-snapshots · 7. observer-warns-on-duplicate-project-name · 8. observer-test-projects-get-unique-names-and-cleanup · 9. track-playbook-conformance-per-module · 10. aide-boot-validates-claude-settings-and-guides-repair
203
+ p2 — low: 11. halt-names-the-claude-session-id-of-linked-sessions · 12. observer-keeps-its-last-port · 13. configurevscode-is-dead-code-never-called-from-install-orche · 14. aide-auto-mode-agent-approves-its-own-plans-and-specs · 15. aide-brain-remediation-tells-users-to-run-npx-sync-themselve · 16. aide-cleanup-cannot-close-a-brief-in-a-spec-only-folder · 17. aide-validate-prints-facts-and-inferred-signals-with-the-sam · 18. aide-validate-scoped-path-test-cannot-see-out-of-scope-findi · 19. aide-validate-with-a-path-reports-missing-specs-from-the-who · 20. fix-flaky-5s-install-suite-test-timeouts · 21. fix-malformed-unreadable-brain-aide-wording-in-brain-md-upgr · 22. observer-board-reader-command-for-any-brain · 23. observer-halts-a-session-on-its-own-conversation · 24. observer-project-list-shows-path · 25. observer-project-row-labels · 26. observer-read-tools-for-sessions-and-pipelines · 27. playbook-refactor-pass-for-pre-aide-code · 28. session-cwd-root-resolution-bug · 29. update-the-design-handoff-and-handoff-start-skills-to-kanban · 30. util-scan-duplicates-checkbox-counter-and-imports-tools · 31. find-why-showfold-migration-wrote-machine-specific-paths · 32. kanban-skill-check-remaining-scope-before-in-review
204
+ p3 — lowest: 33. observer-home-shows-a-kanban-board-that-fits-the-page · 34. align-the-root-intent-and-resolve-the-orphaned-src-cli-spec · 35. small-launcher-fixes-behind-check-registry-and-wiremcp-packa · 36. spec-accuracy-for-installagents-and-missing-helper-specs
205
+
206
+ Relations (user, 2026-11-27): observer-terminal-in-the-bottom-drawer ↔ remote-observer-hosted-web-interface; the two scoped aide_validate tasks (18, 19) are related; observer-halts-a-session-on-its-own-conversation ↔ halt-names-the-claude-session-id-of-linked-sessions; observer-warns-on-duplicate-project-name ↔ observer-test-projects-get-unique-names-and-cleanup. The board priorities were changed to match these groups on 2026-11-27 (9 tasks) and the pairs linked on the tasks' Related lines. Board priorities and Related links were applied 2026-11-27: 9 priority changes and the pairs linked both ways.
207
+
208
+ - the private legal task (aidemd-mcp board, Todo, p0, parked 2026-11-28) — see the brain note `projects/aidemd/legal/session-legal-record.md`.
209
+ - `observer-board-missing-when-agent-omits-brain-folder` (aidemd-mcp board, Done 2026-11-26) — the observer finds the board from the brain config's `kanban` field (decision #99); built and verified, released in 0.18.0.
210
+ - `observer-board-reader-command-for-any-brain` (aidemd-mcp board, Backlog, p2) — `source: command`: a script printing AIDE's board format, read from the project's own config, never relayed by the agent (decision #99).
211
+ - `observer-test-projects-get-unique-names-and-cleanup` (aidemd-mcp board, Backlog, p1) — test-created observer projects get unique names like aidemd-mcp-test-1 and are cleaned up after the run.
212
+ - `observer-warns-on-duplicate-project-name` (aidemd-mcp board, Backlog, p1) — aide_observer_event warns when a project name is already listed at another path; the observer drops projects whose folder was deleted.
213
+ - `observer-project-list-shows-path` (aidemd-mcp board, Backlog, p2) — the project list shows each project's path.
214
+ - `observer-project-row-labels` (aidemd-mcp board, Backlog, p2) — label task and phase in the project row, drop the duplicate slug, pad and label the line under the stepper and make it agree with the stepper.
215
+ - `observer-keeps-its-last-port` (aidemd-mcp board, Backlog, p2) — the observer tries the port it last ran on before walking 24680–24689; AIDE_OBSERVER_PORT stays the override. Until then the user pinned 24681 as a user environment variable. Decided not to set the variable from aide init (init is per project, the port is per machine).
216
+ - `aide-boot-misses-missing-hooks` (aidemd-mcp board, Done) — boot misses projects without the hooks; fixed through aide_info's `outdated` `hooks` key (decision #98); released in 0.17.1.
217
+ - `aide-boot-validates-claude-settings-and-guides-repair` (aidemd-mcp board, Backlog, p2) — broken `.claude/settings.json` comes back from aide_info as its own finding with line/column; the main agent repairs it by hand only after the user confirms, then reruns the tool, which re-validates and adds AIDE's hooks on the user's yes; validation covers only JSONC parse + AIDE's own hook entries.
218
+ - `aidemd-dev-hooks-observer-docs-and-seo-aeo` (aidemd-dev board, Backlog, p1) — lives on the site's own `aidemd-dev` board, not this one: research pass on target queries, hooks docs section, observer page, SEO/AEO. Its research pass now also covers GitHub repo optimization and whether to rename the generic `server` GitHub repo / `@aidemd-mcp/server` npm package (decided from the research).
219
+ - `restructure-aidemd-dev-landing-page` (aidemd-dev board, Backlog, P1) — moved from the aidemd-mcp board to the site's `aidemd-dev` board, alongside `aidemd-dev-hooks-observer-docs-and-seo-aeo`.
220
+ - `aide-per-user-files-land-in-a-packaged-apps-appdata` (Done, p1, bug): per-user AIDE files on Windows land in the Claude desktop app's private AppData; moving to %USERPROFILE%\.aidemd with a one-time history move (decision #96). Created 2026-11-25 with the user's OK; released in 0.17.0; moved to Done 2026-11-25.
221
+ - `aide-observer-skill-with-serve-and-record-settings` (Done, p2, change): builds decision #85 (with #86). A dedicated aide-observer skill; /aide command routes to it, then to aide. Its serve/record settings were dropped by decision #88 (the slug stays). In this pass, started 2026-11-25. Built in the observer pass; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
222
+ - `observer-phase-rail-blank-or-stale-when-reports-missing` (Done, p2, bug): the rail infers progress (an earlier phase is done once a later one starts or its gate resolves; a running phase ends at the next phase, a commit or the session end); the skill pairs every phase_started with a phase_finished and reports spec as a phase; the rail shows "Working outside the pipeline" for hand work. Built in the same pass, started 2026-11-25. Built in the observer pass; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
223
+ - `aide-warns-when-another-live-session-is-in-project` (Done, p2, feature): folded into the observer pass 2026-11-25 (decision #88): one live session per project; aide_observer_start returns HALT naming the other live session; the agent reports it and asks the user how to handle it before starting. Built in the observer pass; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
224
+ - `observer-judges-session-liveness-from-hooks-and-process` (Done, p2, bug): folded into the observer pass 2026-11-25 (decision #88): liveness from Claude Code hooks (activity, session end) plus the Claude transcript's last write as an activity fallback; quiet sessions show 'maybe stuck' and are never auto-ended; replaces the 30-minute event-age rule (decision #89). Built in the observer pass; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
225
+ - `observer-event-log-keeps-file-snapshots` (Backlog, p2, feature): file_written and cleanup events carry the file's content so deleted plans, todos, briefs and old spec versions can be read back from session history by the page and by agents through a read tool. Created 2026-11-25 with the user's OK; out of this pass (decision #88).
226
+ - `phone-touch-target-style-test-fails-after-resize-grips` (Done, p2, bug): the page styles test fails since c5032a2 added the resize grips' 44px rules outside `.av.phone`; released in 0.17.0; moved to Done 2026-11-25.
227
+ - `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` (Done, p2, feature) — backend and page built, verified and committed (2165b40; page rework 7da327b); released in 0.16.1 (29e4421, 2026-11-24); moved to In Review with the user's approval, 2026-11-24; read-only local pipeline viewer (`aidemd-mcp view`), per-session event log written by the `aide_observer_event` MCP tool (no hooks, decision #59); backend first this round; moved In Review → Done with the user's yes, 2026-11-25.
228
+ - `observer-file-drawer-renders-plan-markdown-wrong` (Done, p2, bug) — filed by the user 2026-11-24 from use in showfold; approved to work next: plan markdown in the file drawer (pipe tables, `## ` kept on headings, dropped backticks, inline code as span not `<code>`) and long lines giving the Details pane a sideways scrollbar; fixed 2026-11-25, committed c5032a2; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
229
+ - `observer-report-task-resumed-in-progress-at-boot` (Done, p2, bug) — filed by the user 2026-11-24 from use in showfold; approved to work next: prose-only fix stating that taking up a task at boot, including one already In Progress, is reported as `task` with action `picked` and its column; fixed 2026-11-25 (prose), committed 5afd567; moved to In Review with the user's yes, 2026-11-25; released in 0.17.0; moved to Done 2026-11-25.
230
+ - `observer-home-shows-a-kanban-board-that-fits-the-page` (Backlog, p3) — the home kanban board was removed in the page rework (#83) pending this task.
231
+ - `util-scan-duplicates-checkbox-counter-and-imports-tools` (Backlog, p2, bug) — util/scan's private checkbox counter and its import from tools/frontmatter break src/util/.aide; found while planning the observer; out of scope (#71).
232
+ - `aide-cleanup-cannot-close-a-brief-in-a-spec-only-folder` (Backlog, p2, bug) — aide_cleanup/aide_frontmatter can't close a brief in a folder with a spec but no plan (the observer feature's parent brief).
233
+ - `remote-observer-hosted-web-interface` (Backlog, p2, feature) — view all sessions from anywhere through a hosted web interface; the local observer connects out over WebSocket and gets a random URL; view-only first; accounts/stable URL, session control and input forwarding are roadmap.
234
+ - `observer-terminal-in-the-bottom-drawer` (Backlog, p2, feature) — a terminal in the observer's bottom drawer forwarding Claude Code I/O so the user can talk to the agent from the web UI; to be discussed later; related to `remote-observer-hosted-web-interface` (the local observer would still check running sessions; the hosted page would be a synced view). Created 2026-11-25 with the user's OK.
235
+ - `default-aide-and-brain-mcp-launchers-to-global-installs` (Done, p1, bug) — released in v0.15.0; moved In Review → Done with the user's yes, 2026-10-28; installer installs aide globally and drops npx; brain template launcher global; [migration] moves existing projects.
236
+ - `aide-info-never-tells-a-pinned-project-it-is-behind` (Done, p1, bug) — released in 0.14.0 (feature 5bb3c12 + 7367af2, release b62c696); moved to Done by the user, 2026-10-26.
237
+ - `track-playbook-conformance-per-module` (Todo, p2, feature) — per-module last-playbook-check field on specs; @playbook pointers in orchestrator headers (what SHOULD govern, from the playbook's routing); plan history via git commit checkpoints plus a brain archive at close-out (squash-proof); suggestions, never automatic passes; migrations.
238
+ - `ship-never-truncate-slug-rule-in-brain-template` (Done, p3, housekeeping) — released in 0.13.1; this repo's brain config took it 2026-10-26 (42e2494); moved to Done by the user.
239
+ - `every-plan-requires-an-intent-spec-beside-it` (Done, p1, bug) — released in 0.13.0 (feature dc41576, release fecac4b); moved to Done by the user, 2026-10-26.
240
+ - `aide-scaffold-writes-the-root-intent-as-aide-aide-instead-of` (Done, p1, bug) — released in 0.12.1; moved to Done by the user, 2026-10-26.
241
+ - `architect-sets-the-folder-structure-before-any-spec-below-th` (Done, p2, change) — structure gate written as prose, approved and committed 2026-10-25; ships in the next release. Released in 0.12.1.
242
+ - `aide-validate-with-a-path-reports-missing-specs-from-the-who` (Backlog, p2, bug) — detectAnomalies runs the missing-spec walk from the project root whatever path is passed.
243
+ - `aide-validate-scoped-path-test-cannot-see-out-of-scope-findi` (Backlog, p2, test) — the only scoped-path test can't see out-of-scope findings; add an end-to-end scoped run.
244
+ - `aide-validate-prints-facts-and-inferred-signals-with-the-sam` (Backlog, p2, change) — every finding prints with the same confidence, so facts and inferred signals look alike.
245
+ - `let-session-aide-exist-without-a-linked-kanban-task` (Done, p2, change) — session.aide always exists as an empty placeholder (aide_init + /aide boot); handoffs never refuse for missing content or tasks; also adds the aide-upgrader migration agent — shipped in v0.12.0, closed out; moved to Done by the user, 2026-10-25.
246
+ - `aide-scaffold-overwrites-existing-files` (Done, P1, bug) — folded into the session task: aide_scaffold never overwrites any file — shipped in v0.12.0; moved to Done by the user, 2026-10-25.
247
+ - `aide-auto-mode-agent-approves-its-own-plans-and-specs` (Backlog, p2, change) — a project setting that skips human review. The agent still reviews plans and moves them proposed → approved itself, and session.aide records who approved. Depends on the session task.
248
+ - `aide-cleanup-strands-a-fully-checked-todo-aide-in-a-folder` (Done, P1, bug) — fixed and released in v0.11.1; moved to Done by the user, 2026-10-25.
249
+ - `brain-authoring-skill-create-a-brain-aide-for-any-backend` (Done, P2, dx) — committed 6d85560; released in v0.11.0; moved to Done by the user, 2026-10-25.
250
+ - `versions-manifest-release-hygiene` (Done, P2) — built, QA passed, committed 260c82e; released in v0.11.0; moved to Done by the user, 2026-10-25.
251
+ - `aide-init-brain-step-returns-full-template-bytes-in-the-meta` (Done) — content-free brain responses; shipped in 0.10.2.
252
+ - `add-an-aide-cleanup-mcp-tool-that-deletes-pipeline` (Done) — aide_cleanup MCP tool with code-enforced preconditions; the maintainer removes ephemerals through it, never rm. Built, QA passed.
253
+ - `aide-scaffold-creates-and-reformats-session-aide` (Done) — dropped, won't do — the user never asked for it.
254
+ - `migrate-legacy-brain-aide-launchers-and-stale-sections-on-up` (Done, P1, pre-publish) — read-only detection of outdated brain.aide sections and legacy brain launchers; /aide:brain config offers each change, applied only on the user's yes. Moved to Done by the user, 2026-10-25.
255
+ - `strategy-for-pipelines-when-modules-hand-off-in-a-specific-order` (Done, P1, pre-publish) — moved to Done by the user, 2026-10-25. Synthesize runs when the feature is a pipeline (the pipeline test), independent of research. Done as prose; one follow-up outside this repo: reword the Showfold `research-implies-strategy` memory rule.
256
+ - `rename-cards-to-tasks-in-kanban-prose` (Done) — kanban items are called tasks everywhere; existing copies (global skill/agent, brain guides) updated.
257
+ - `bring-the-kanban-board-into-aide` (Done) — dropped, won't do (user, 2026-10-25).
258
+ - `fix-malformed-unreadable-brain-aide-wording-in-brain-md-upgr` (Backlog, P2) — housekeeping.
259
+ - `aide-brain-remediation-tells-users-to-run-npx-sync-themselve` (Backlog, P2) — housekeeping.
260
+ - `update-the-design-handoff-and-handoff-start-skills-to-kanban` (Backlog, P2) — housekeeping.
261
+ - `fix-flaky-5s-install-suite-test-timeouts` (Backlog, P2) — housekeeping.
262
+ - `session-cwd-root-resolution-bug` (Backlog, P2) — housekeeping.
263
+ - `spec-accuracy-for-installagents-and-missing-helper-specs` (Backlog, P3) — housekeeping.
264
+ - `small-launcher-fixes-behind-check-registry-and-wiremcp-packa` (Backlog, P3) — housekeeping.
265
+ - `align-the-root-intent-and-resolve-the-orphaned-src-cli-spec` (Backlog, P3) — housekeeping.
266
+ - `configurevscode-is-dead-code-never-called-from-install-orche` (Todo, P2) — stale, to review with the user.
267
+ - `create-per-command-aide-specs-under-claude-commands-aide` (Done) — dropped, won't do (user, 2026-10-25).
268
+ - `replace-the-plugin-board-with-per-project-card-folders` (Done, P1) — folders are the board; user's board migrated.
269
+ - `ship-a-kanban-board-agent-that-finds-and-returns-cards-and` (Done, P1) — the kanban-maintainer board agent
270
+ - `brain-contract-and-create-repair-command` (Done) — done.
271
+ - `aide-info-reports-brain-not-connected-for-global-package-install` (Done) — done.
272
+ - `build-aidemd-mcp-server` (Done) — done.
273
+ - `add-aide-init-config-tool` (Done) — done.
274
+ - `observer-session-stays-open-when-session-end-hook-is-killed` (aidemd-mcp board, Done, p1, bug; shipped 0.20.0; moved to Done 2026-11-27 with the user's yes) — archiving fires SessionEnd but the hook is killed before writing, so the observer keeps the session open and HALTs later sessions; fix direction open (faster end path and/or observer checks the Claude session is gone). Created 2026-11-26 with the user's yes.
275
+ - `halt-names-the-claude-session-id-of-linked-sessions` (aidemd-mcp board, Backlog, p2, change) — HALT line also names the linked Claude session id and transcript path so the agent can check directly; then shorten the skill's lookup step. Created 2026-11-26 with the user's yes.
276
+ - `add-aide-reference-folder-destructure-tools-add-hooks` (aidemd-mcp board, Done, p1, feature; released in 0.19.0; moved to Done 2026-11-27 with the user's yes) — `.aide/reference/` with per-tool and per-hook pages and index tables of contents, shipped to projects via init/upgrade so aidemd.dev can render them as docs sections; created by the user 2026-11-26 from the aidemd.dev session.
277
+ - `playbook-refactor-pass-for-pre-aide-code` (aidemd-mcp board, Backlog, p2, change) — scoped /aide:refactor audits module by module for code that predates mature AIDE, starting with src/service/install (fold in the five install* renames); ordered via track-playbook-conformance-per-module. Created 2026-11-26 with the user's yes; not to start until picked.
278
+ - `fix-shipped-doc-relative-links` (aidemd-mcp board, Done, p1, bug; moved to Done 2026-11-27 with the user's yes) — shipped doc links fixed + link test; released in 0.19.1, site synced.
279
+ - `observer-read-tools-for-sessions-and-pipelines` (aidemd-mcp board, Backlog, p2, feature) — read-only observer tools for agents: list projects, list sessions, pipeline status. Created 2026-11-26 with the user's yes.
280
+ - `make-the-claude-code-hook-start-faster` (aidemd-mcp, Done, p3, change; shipped 0.20.0; moved to Done 2026-11-27 with the user's yes) — zod off the hook path; built and QA-passed 2026-11-26.
281
+ - `observer-halts-a-session-on-its-own-conversation` (aidemd-mcp board, Backlog, p2, bug) — after an aide MCP server reconnect, aide_observer_start HALTs on the conversation's own earlier observer id; link by the Claude session id the hook records, and have the observer skill send session_started again after a reconnect. Created 2026-11-27 with the user's OK.
282
+ - `move-aidemd-mcp-npm-package-to-lowmeadow-llc` (aidemd-mcp board, Done (2026-11-28), p0) — done and released in 0.20.3 (npm author Lowmeadow LLC, sole maintainer `aidemd`, GitHub org membership private); moved to In Review with the user's yes, 2026-11-28.
283
+ - `kanban-roadmap-an-ordered-timeline-linking-each-task` (aidemd-mcp board, Backlog, p1, feature) — each board gets a roadmap note holding the work order and a timeline (phases or target dates, to settle), linking every task and its relations; replaces a per-task rank field; the kanban skill keeps it in sync; ships in the bundled brain template, so it starts in this repo with a [migration] entry; first content is the 2026-11-27 work order above. Created 2026-11-27 with the user's OK; not yet placed in the work order.
284
+ - `ses-inbound-forwarding-for-security-aidemd-dev` (aidemd-dev board, Backlog, p2) — security@aidemd.dev forwarding was set up from this repo on 2026-11-28 (shared Showfold forwarder); what's left there is adding `Contact: mailto:security@aidemd.dev` to the site's security.txt, which is the site's work.
285
+ - `github-npm-and-mcp-registry-discovery-metadata` (aidemd-mcp board, Done, p0) — apply the SEO/AEO metadata fixes for GitHub About/topics/website, README first paragraph, npm homepage/description/keywords, server.json/MCP Registry, directory listings; research gap pass running 2026-11-28; every external change confirmed with the user first.
286
+ - `forked-session-counts-as-second-open-session-in-observer` (aidemd-mcp board, Backlog, p2, review) — a forked or /btw session sends SessionStart but never SessionEnd, so the observer counts it as a second open session and HALTs the parent; decide how such copies are treated.
287
+ - `org-level-accessibility-md-for-the-aidemd-mcp-repos` (aidemd-mcp board, Backlog, p2, feature) — honest org-level ACCESSIBILITY.md in a new aidemd-mcp/.github repo, after an accessibility check of the observer page and aidemd.dev; created 2026-11-28 with the user's yes.
288
+ - Research 2026-11-28: brain research/seo-aeo/2026-11-28-github-community-health-and-accessibility-signals.md (7.6) — no scorer or study counts ACCESSIBILITY.md (speculative only); documented trust inputs are LICENSE, SECURITY.md (OpenSSF Scorecard, Best Practices), CONTRIBUTING; aidemd-mcp/server community health 37% (README + LICENSE only); no org .github repo exists. Done 2026-11-28 with the user's yes ('Add them now'): .github/SECURITY.md (GitHub private vulnerability reporting + security@aidemd.dev; supported = latest; scope incl. the 127.0.0.1 token-guarded observer) and .github/CONTRIBUTING.md (setup, intent-spec, tests, changelog/[migration], reference pages + npm run build:readme, .claude prompts, PR rules, MIT) committed as 271f706 (author aidemd-dev) and pushed; community health 37% → 62% (readme, license, contributing); GitHub reports isSecurityPolicyEnabled true. Still missing: CODE_OF_CONDUCT, issue/PR templates (no documented effect).
289
+ - `research-how-to-grow-github-stars-and-adoption-for-aidemd` (aidemd-mcp board, Backlog, p2) — research pass on growing GitHub stars and adoption (launch channels, how comparable frameworks grew, README first impression, awesome-lists); not to start now.
290
+ - `research-how-aidemd-cloud-could-make-money` (aidemd-cloud board, Backlog, p2) — research pass on how AIDEMD Cloud could make money: competitor pricing, Anthropic's terms for hosting Claude Code, compute and token costs, free/paid/team tiers.
291
+ - `rename-the-product-to-aidemd` (aidemd-mcp board, In Progress, p1) — carry out decision #108: repo aidemd-mcp/aidemd, npm @aidemd-mcp/aidemd with both commands, final old-name version + deprecation, Trusted Publisher, registry name choice, Glama/README/aidemd.dev/PR #21076, [migration] entry.
292
+ - `opt-in-usage-telemetry-for-aidemd` (aidemd-mcp board, Backlog, p1) — opt-in usage telemetry so we know how many people really use AIDEMD (what is counted, opt-in notice, where it is stored, how to turn it off, privacy note); created with the user's yes 2026-11-28.
293
+
294
+ ## The architectural intent (what the specs say after the rewrite)
295
+
296
+ 1. **Required sections.** New brain.aide sections are REQUIRED, not optional. A missing section fails boot with a specific message naming it.
297
+ 2. **Contract source.** The required-section list is the contract, published only from brainContract. The template is only the default fill. A custom-backend config that satisfies the contract is valid.
298
+ 3. **Repair scope.** Repair inserts only the missing sections, taken from the LATEST bundled template. Existing sections, wiring and customizations are never touched.
299
+ 4. Superseded by #21.
300
+ 5. **Fifth status.** It is `brain-aide-invalid`, with a tagged fault:
301
+ - missing-sections, which names the missing sections;
302
+ - malformed, which gives the reason.
303
+
304
+ A missing file stays `no-brain-aide`. An unwired slot stays `no-mcp-entry`. A present file is never reported as "not present".
305
+ 6. Superseded by #20.
306
+ 7. Superseded by #13.
307
+ 8. **One `kanban` skill** replaces the 7 kb-* skills.
308
+ - It is a thin pointer that does not depend on AIDE, so it works in non-AIDE projects.
309
+ - The same file is shipped by AIDE and copied verbatim as the user's global skill.
310
+ 9. **No `feature` field.** Task ↔ feature linking is out of scope (separate kanban task).
311
+ 10. **Existing bug fixes included:**
312
+ - aide_init's brain category was gated on a stale brainPath argument (removed).
313
+ - The no-mcp-entry wiring flow got "run sync" instead of the config prose; the brain.md rewrite now reads the section from the file.
314
+ 11. **Unreadable brain.aide.** A present-but-unreadable brain.aide (any read error but ENOENT) reports `brain-aide-invalid` with a malformed fault carrying the read error, e.g. "cannot read .aide/config/brain.aide: path is a directory (EISDIR)".
315
+ - The parser has a sixth parse kind, `unreadable`. The status vocabulary stays five.
316
+ - Upgrade maps unreadable to malformed, never missing.
317
+ - Sync refuses with the reason.
318
+ 12. **Single-source guard scope.** The single-source guard (src/service/parseBrainAide/singleSource.test.ts) scans src/ string literals AND every .md/.aide under .claude/ and .aide/docs/ for real contract marker tokens.
319
+ - Ephemeral pipeline files are excluded.
320
+ - /aide:brain config derives the config section's markers from brainContract.
321
+ 13. **The template is Obsidian-specific and the kanban guide is split (user, 2026-10-08).**
322
+ - **The bundled Obsidian template's section text is written for Obsidian:** wikilinks, the Kanban plugin's board format and trailing `%% kanban:settings` block, `kanban-plugin` frontmatter, and the real brain tool names.
323
+ - **It reproduces the user's working kanban exactly**, with only references to the user's own projects excluded. Its source is the user's customized brain copy.
324
+ - **The guide is split into a hub plus one file per operation.**
325
+ - Seed sections: `kanban-hub` → `kanban/kanban.md`, plus `kanban-create` / `-work` / `-manage` / `-move` / `-complete` / `-stash` / `-review` → `kanban/guide/<op>.md`. The architect may refine these names.
326
+ - The `work-kanban` section is removed.
327
+ - The contract goes from 8 to 15 sections.
328
+ - **The kanban skill** stays backend-neutral and points to the hub, then the operation file.
329
+ - **Repair on a non-template backend** adapts both live and seed sections.
330
+ 14. **Launch modes (user, 2026-10-09).**
331
+ - Setup asks global or local, global recommended.
332
+ - Global = bare command name. Local = pinned with `-y`, never `@latest`.
333
+ - A missing global package gets a consent-gated install, with fallback to pinned local.
334
+ - The choice sticks.
335
+ - Upgrade judges npx / aidemd-mcp / custom; custom entries are left alone.
336
+ - /aide:upgrade moves the aide pin; /aide:brain config moves the brain pin.
337
+ - aide_info has a separate `behind` notice.
338
+ - No user-facing @latest anywhere, enforced by a guard test.
339
+ - publish.mjs updates the README pins.
340
+ 15. **Board tracking lives on the AIDE side (user, 2026-10-09).** The /aide boot sequence checks the project's open tasks through the kanban skill and cross-checks them against session.aide; the orchestrator keeps the feature's task current through kanban skill operations (start → In Progress, stash at transitions, complete at close), never silently. session.aide carries a required `## Kanban` section linking every task tied to the feature by slug. Tasks still carry no feature field (#9 stands); the dependency stays one-way, AIDE → kanban.
341
+ 16. **Board work goes through the `kanban-maintainer` agent (user, 2026-10-09).** The board is too large for the main context. The agent reads the board and tasks and reports what work is available (title, excerpt, path per task); the main agent uses that report to ask the user what to work on or continue the session's task, may read any single task by its path, and redelegates every change back to the agent by slug. The agent never runs approval gates — the main agent holds them. It ships with the kanban skill as a pair (AIDE-independent), installed by aide_init.
342
+ 17. **No board file; per-project task folders (user, 2026-10-09).** The user no longer uses the Obsidian kanban plugin, and the single board (456 lines, ~99 KB, ~10 projects per column) is unreadable for agents. Folders are the board: kanban/<project>/<column>/<slug>.md (backlog, todo, in-progress, in-review, done); a task's folder is its column; task frontmatter carries project, priority, optional type, created, updated. No plugin frontmatter, settings block, checkboxes or wiki-link board lines. This supersedes #13's plugin board format for the kanban seeds (the kanban-board seed is dropped; the index and guides are rewritten); the rest of #13 stands. It must land before publish. Migrated 2026-10-09: 667 tasks; folder column won over board column; board.md and backups in kanban/legacy/.
343
+ 18. **session.aide is never deleted (user, 2026-10-09).** It is the long-lived session record, linked to the board. aide_cleanup never reads, writes or deletes it. The maintainer, /aide Completion, handoff skill and session-aide.md now say so.
344
+ 19. **Strategy is triggered by the pipeline test (user, 2026-10-08).** Strategy needed = several modules each doing one thing in a specific order, handing off through calls, events or queues; independent of Research needed. Parent spec carries the end-to-end flow, each module its slice; self-contained modules stay frontmatter-only. Decisions parked in session.aide or brief.aide never justify skipping.
345
+ 20. **Content-free brain responses (user, 2026-10-10).** aide_init's summary brain step carries only `brainSummary` (flags, markers, sizes) on every status — the heavy fields are removed from the type. Missing sections are inserted tool-side by aide_upgrade category=brain (byte-identical only when the launcher is the template's mcpvault integration; otherwise named for the user to adapt), matching the file's line endings, returning only inserted markers. One migration per round trip: aide_upgrade brain with `brainChange: <marker|"launcher">` and no `beforeHash` is a read-only preview returning one before/after + `beforeHash` (lowercase hex SHA-256 of the exact before string); the same call with `beforeHash` applies, refusing on any byte change. aide_brain accepts any contract marker and returns one section verbatim on every status where the file exists and parses; its reply is exactly status, instructions, found (`found` true only when instructions is the section's bytes). Malformed remediation gives the parser's reason, a hand fix, and a re-check; never "run /aide:brain config". No explicit consent flag; no line numbers.
346
+ 21. **Brain config authoring is its own skill (user, 2026-10-10).** Validation stays structural — every required field and section must exist; content is the user's responsibility. Authoring a brain.aide for any backend becomes a standalone skill (task `brain-authoring-skill-create-a-brain-aide-for-any-backend`); /aide:brain config keeps detection, Obsidian repair, migration, validation and sync, and hands create and custom-backend adapting to that skill once it exists.
347
+ 22. **session.aide is always current (user, 2026-10-10).** The orchestrator updates session.aide through aide-handoff whenever anything changes what it says — not only at pipeline milestones — and never ends a turn or a session with it behind.
348
+ 23. **session.aide is the full session record, linked to the board (user, 2026-10-10).** It holds what was done, every decision settled, what is validated and what comes next, in full — a fresh agent needs only this file to resume. `## Kanban` slug links stay required. Task stashes continue alongside but never replace the record. This reverses the 2026-10-09 'index to the board' slim-down (c913d8d).
349
+ 24. **Versions manifest hygiene (user, 2026-10-10).** One plan at src/tools/upgrade/buildVersionsMeta covers:
350
+ - `fetch-depth: 0` on the checkout in publish.yml and ci.yml (ci.yml runs `npm run build`).
351
+ - A new src helper `assertFullClone(repoRoot)`. It runs `git rev-parse --is-shallow-repository`, resolves only on exactly "false", and throws on "true" or anything else. It is wired into scripts/build-versions.ts after the git --version check and exits 1 like the existing aborts.
352
+ - package.json gets `"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""`. `build` starts with `npm run clean &&`, `prepublishOnly` becomes `npm run build`, and `files` gets `"!.aide/versions.json"`.
353
+ - `git rm .aide/versions.json` plus a .gitignore entry.
354
+
355
+ No change to parseGitLog, previousCommit, readVersionsManifest or resolveOutdated. The first full-history publish changes every artifact's sourceCommit vs v0.10.4, so hosts see everything outdated once more on that upgrade. This is a one-time correction.
356
+ 25. **Brain authoring skill is `aide-brain-author` (user, 2026-10-10).** It is a canonical shipped skill. Its SKILL.md is prose and is edited directly by the main agent. Its registration in the install, upgrade and versions-manifest code goes through the pipeline.
357
+ 26. **aide_brain parameter shape (architect, user-approved and built; 2026-10-10).** `aide_brain { source?, kind?, path? }`:
358
+ - `source` is one of "host" | "template" | "contract" | "draft". Omitted means "host".
359
+ - Host (default): kind is any contract marker, omitted means "orientation". It returns `{ status, instructions, found, purpose? }`, unchanged.
360
+ - template: kind is any contract marker or "launcher", omitted means "orientation". It returns `{ template, purpose }` with the bundled template's verbatim bytes. The launcher is the frontmatter region in the default launch mode (global from decision #56). The launcher purpose lives in brainContract (launcherPurpose), not in the contract array.
361
+ - contract: takes no other param. It returns `{ sections: [{ marker, role, purpose }] }` in contract order, with no text and no launcher.
362
+ - draft: `path` is required and project-relative. It returns `{ outcome: valid | invalid (fault missing-sections/sections or malformed/reason) | absent | refused (outside project; nothing read, path not echoed), instructions }`. It uses parseBrainAideFromString and classifyParseFailure, so faults match the host check.
363
+ - BrainInput is a zod union of strict variants. Rejected: launcher outside template, kind with contract or draft, path outside draft, unknown keys.
364
+ - No mode writes to disk. Draft remediation never points to aide_upgrade or /aide:brain config.
365
+ 27. **aide-brain-author skill shape (orchestrator prose, 2026-10-10).**
366
+ - The skill writes a whole config to `.aide/config/brain.aide.draft`, checks it with `aide_brain({ source: "draft" })`, then: swaps it in when no config existed; on replace, renames the current file to `.aide/config/brain.aide.bak` first; on beside, leaves the draft.
367
+ - Its repair mode (adding missing sections, handed off from /aide:brain config's adapt branch) edits the live config in place, then re-checks with aide_info.
368
+ - It asks the launch mode itself with the same Global/Local wording as /aide:brain config.
369
+ - It never runs sync or seeds the brain; /aide:brain config owns wiring and seeding.
370
+ 28. **aide_cleanup closure rule (user, 2026-10-11).**
371
+ - Where a plan.aide exists, the plan must be fully checked, and any todo.aide present must be fully checked. A missing todo never blocks. allowEmptyPlan lets only a plan with no checkboxes pass.
372
+ - Where there is no plan.aide, a fully checked todo.aide is removed on its own. Refused: a brief.aide (removed only together with its plan); a todo.aide with no checkboxes; a folder with no ephemerals. allowEmptyPlan is ignored there.
373
+ - A refusal names each unchecked item by file and line and removes nothing.
374
+ 29. **session.aide always exists, and comes from aide_scaffold (user, 2026-10-25).** It is an empty placeholder (intent 'Nothing recorded yet.' plus every canonical section heading, each empty) from aide_scaffold type "session", the single template source. aide_init instructs the agent to call it, and /aide boot calls it when the file is missing. Every handoff is an UPDATE that writes whatever the agent has. It never refuses for missing content, and ## Kanban may be empty. aide_scaffold never overwrites, so nothing resets a filled record. This amends #15 and #23; board tracking still stands but never gates a write.
375
+ 30. **aide_scaffold never overwrites; replacement is a separate delete (user, 2026-10-25).** Every type (intent, research, both, todo, plan, session) is a no-op on an existing target, reported as such. Replacing a file means removing it through aide_cleanup first.
376
+ 31. **Abandon mark (user, 2026-10-25).** plan.aide, todo.aide and brief.aide can carry the `abandoned` status, set through aide_frontmatter by an agent only after the user says to discard the work (for example, abandoned halfway through to start over, or a never-used blank scaffold). aide_cleanup removes a file that is fully checked or marked abandoned. The rule is per file (an abandoned plan next to an open todo list is refused), and an abandoned plan takes its brief. Cleanup never sets or infers the mark. allowEmptyPlan is removed. session.aide is never removed. This amends #28.
377
+ 32. **Recorded state through aide_frontmatter (user, 2026-10-25).** Two governed fields. Specs carry `alignment` (unreviewed/aligned/misaligned; editing a spec resets it to unreviewed; the old `status: aligned|misaligned` on a spec is read as alignment and renamed on the next write). Plans, briefs and todo lists share one `status` lifecycle (proposed/approved/completed/abandoned; approved drops to proposed when revised); `in-flight` is retired. aide_frontmatter enforces the transitions (no skipped steps; completed and abandoned are final; completed only with every item checked; a brief completes only with its plan), never removes a value, changes only the one line, and refuses the session record, research specs, non-AIDE files and outside paths. It never decides when a value changes. Who approved a plan goes in session.aide, not in a status. No `revising` or `review-bypassed` status. This repo's specs get a one-time backfill.
378
+ 33. **Build gate (user, 2026-10-25).** Building needs the plan, and its brief if present, approved; fixing needs the todo list approved. /aide:build, /aide:fix and the aide-implementor each read the status through aide_frontmatter's read mode first (exact line `<path> — status: approved`) and stop otherwise. Revising an approved file drops it back to proposed.
379
+ 34. **Spec edits reset alignment (user, 2026-10-25).** The spec writer and strategist set alignment back to unreviewed through aide_frontmatter after editing a spec; the aligner restores aligned. The backfill sets install and scaffold (rewritten today) to unreviewed, and cleanup and frontmatter (no value) to unreviewed; all others keep their value under `alignment`.
380
+ 35. **aide-upgrader agent (user, 2026-10-25).** A new canonical agent, shaped like kanban-maintainer. It never talks to the user. REPORT mode finds every AIDE file on an older format: intent specs on the old `status` name or with no alignment, and plans/todos/briefs with no status. For each one it suggests a value with evidence from the checkboxes, the git history of what the steps built, a todo beside it, and session/task mentions. APPLY mode carries out exactly the changes the user approved, through aide_frontmatter only, and verifies each one. The upgrader runs at the end of EVERY /aide:upgrade, reading the changelog's [migration] entries; there is no notice and no condition. Specs migrate as one batch on a single yes; each status-less plan/todo/brief is confirmed with the user, using the upgrader's suggestion. Future format changes reuse the same agent. Code: register the new agent wherever installs/upgrades list agents, plus the versions manifest (pipeline). Prose: the agent definition, and /aide:upgrade's final step (main agent).
381
+ 36. **The fix loop is autonomous (user, 2026-10-25).** QA's todo list is agents checking agents. The orchestrator triages it, approves it itself through aide_frontmatter, and routes each item by misalignment tag: implementation-drift/test-gap → implementor; plan-gap/strategy-gap → architect amends the plan first; spec-gap/spec-bloat → spec-writer/strategist; research-gap → domain expert. The user is interrupted only for an outcome change, a scope change, or an item still failing after two attempts; otherwise they hear one line in the completion report. Out-of-scope defects stay unchecked with a note and are offered as tasks. Written into the aide skill's Stage 7 and /aide:fix.
382
+ 37. **Changelog drives migrations (user, 2026-10-25).** CHANGELOG.md at the repo root (Keep a Changelog) ships to hosts as .aide/docs/changelog.md. Format-changing bullets start with [migration] and carry exactly Detect / Migrate / Confirm (Confirm: once, as a batch | per file). aide-upgrader reads only those bullets, detects by the file's current form (idempotent, catches up skipped releases), and uses the host's git history as evidence for per-file suggestions. This repo's CLAUDE.md requires an [Unreleased] entry with every user-visible change and a [migration] entry for every format change; a release missing one is not shippable.
383
+ 38. **Session record from aide_scaffold only (user, 2026-10-25).** Boot, aide-handoff and the spec writer's CREATE all call aide_scaffold type=session; nobody writes the placeholder by hand. aide_init's session step only instructs the agent to call it; the CLI calls the same scaffold function.
384
+ 39. **Structure gate (user task, 2026-10-25).** No intent spec below the project root is written until the module's place in the folder tree is settled. The gate applies when the project has no code yet, or the target module's folder does not exist and no approved tree in session.aide's architectural intent places it; it never applies to the root intent spec, which comes first. The orchestrator interviews the user, delegates to aide-architect in structure mode (writes no file; returns project tree with .aide folders marked and which spec each narrows, entity model, playbook mapping per layer, decisions, spec order, open questions), pauses for approval, records the approved tree as a numbered session.aide decision, then runs Stage 1 per module parents first. Moving/splitting/re-parenting a module, including spec-writer child-spec splits, goes back through structure mode. Every plan's Project Structure must fit inside the approved tree. The spec writer never picks an unsettled folder.
385
+ 40. **Root intent name (user, 2026-10-25).** The project root intent spec is always `.aide/intent.aide`. aide_scaffold type=intent on the project's .aide folder writes intent.aide, and when that folder holds a bare `.aide` and no intent.aide it renames the bare file to intent.aide (content kept); if intent.aide exists, nothing changes. Everywhere else the naming rule is unchanged. A [migration] changelog entry (Detect: a bare `.aide` in the project's `.aide` folder and no `intent.aide`; Migrate: that aide_scaffold call; Confirm: once) lets aide-upgrader fix older hosts. aide-spec.md's bootstrapping paragraph will say the spec writer creates the root spec with aide_scaffold on the first /aide run — not aide_init.
386
+ 41. **Scaffold root folder handling (architect, user-approved, built c84d27c, released 0.12.1).**
387
+ - A new helper resolveSpecFolder({ root, directory }) returns { folder, holdsRootSpec }. ".", "", ".aide", "./.aide/" and their absolute forms are the root spec folder; matching is case-insensitive on Windows; a nested folder named .aide is not the root spec folder.
388
+ - "." resolves to the root spec folder.
389
+ - existingAideFiles counts files only.
390
+ - A new helper placeRootIntent returns created | renamed | exists: if intent.aide exists, nothing changes; else a bare .aide is renamed; else the spec is created. It ignores research.
391
+ - Report lines name paths from the project root.
392
+ - The `.aide/` folder is never treated or renamed as a spec.
393
+ 42. **No plan without a spec (user, 2026-10-26).** No code without a plan, no plan without an intent spec beside it.
394
+ - Any folder that gets its own plan gets an intent spec; frontmatter only is enough (e.g. a shared types folder, a shared-helpers folder, single-file modules).
395
+ - Helper folders inside a planned module do not.
396
+ - aide_scaffold type=plan refuses when the folder has no intent spec (a research-only folder doesn't count), naming the missing spec.
397
+ - aide_validate flags any plan.aide with no spec beside it, and reports a spec as orphaned only when its folder holds no code — never decided by a plan's presence, since plans are deleted after QA.
398
+ - User additions 2026-10-26: the project root intent spec is never orphaned; dot-files don't count as code. Built dc41576.
399
+ 43. **Playbook Read entries are exact addresses (user, 2026-10-26).** The architect/auditor copy each `Read:` entry from their own successful read, character for character; the brain's read tool decides the address shape, so the rule needs no change per brain backend; sections are named in words. The implementor passes addresses unchanged, never substitutes nearby code, stops on an entry it can't load, and reports every entry loaded/not loaded; the orchestrator checks the report per step. Committed 7b8756d. The user chose no automatic post-QA playbook pass (2026-10-26).
400
+ 44. **Slugs are never truncated (user, 2026-10-26).** A slug stays within 60 characters by being a shorter whole-word phrase that says what the task is, never the title cut off at the limit; the title keeps its full wording.
401
+ 45. **AIDE first (user, 2026-10-26).** Any change to methodology that also lives in the brain's seeded notes, the user's global kanban skill/agent, or host projects' installed files starts in this repo's canonical source (template section with fingerprint append, .claude/ file, .aide/docs/ doc), is logged in CHANGELOG [Unreleased] (with [migration] when a file goes out of date), and only then reaches the copies through their owning tools (/aide:upgrade, /aide:brain config, byte-for-byte copy of the global skill/agent). A copy changed first for an urgent fix gets the same change here and a log entry in the same piece of work. Written into this repo's CLAUDE.md as "## AIDE First: Never Change a Shipped Copy Directly". The upgrade path reaches the seeded brain file too (brain.md Step 5b, d657a26).
402
+ 46. **Version behind vs artifacts outdated (user, 2026-10-26).** Version behind = the server version the project runs (the pin in its MCP config, or the global install) is older than npm latest — the only comparison against latest. The notice says the launch kind, how many published versions behind, and a few short highlights of what was added/fixed (an incentive, never a changelog dump). Artifacts outdated = the project's AIDE files are older than the version it runs (the pinned version for a pinned project); never compared to latest; files matching the pin produce no warning even when the pin is behind. Boot order: version behind → offer the server upgrade (pinned: move the pin, because /aide:upgrade on an old server can't; global: npm i -g) → halt and require a new session → next session: artifacts outdated → /aide:upgrade → halt and require a new session after ANY upgrade that changed something (otherwise the agent mixes old and new docs/skills/agents); nothing changed → no restart. Strategy IS needed (ordered cross-session flow); its body goes in src/tools/info/.aide.
403
+ 47. **Pinned upgrade path (user, 2026-10-26).** Decision A — `installed` is the running server's version for every launch kind (a pin edited but not restarted reports behind until restart). Decision B — an unpinned npx launch gets the same pin-to-latest remedy. The version is installed (npx cache pre-fetch) before the pin is switched, and nothing is switched if the fetch fails; aide_upgrade `targetVersion` with the tool writing the pin (never the agent); a new session after any upgrade that changed something; custom launch commands (e.g. `node ./dist/index.js`) still count as global (left as-is by the user).
404
+ 56. **Minimal global-install fix (user, 2026-10-27).** (1) The installer (npx init CLI and aide_init) installs the aide server globally as a setup step (`npm i -g @aidemd-mcp/server`) and wires the aide MCP entry as the bare global command `aidemd-mcp` (never a machine-specific path); no npx launch, no launch-mode question, no local/npx flag; a failed install says so and stops without writing an entry that cannot start. (2) The installer installs nothing for the brain: the bundled template's default launcher becomes the global form (`mcpvault <brain path>`), and /aide:brain config's existing step installs mcpvault when the brain is configured. (3) A CHANGELOG [migration] entry lets the upgrader move existing projects off npx: install the package, then the existing upgrade tools rewrite the entry (aide_upgrade mcp repair for the aide entry; the brain launcher change for brain.aide). Global is AIDE's canonical form, so an npx entry is out of date. No project config file and no mode setting; auto mode stays task `aide-auto-mode-agent-approves-its-own-plans-and-specs`. Supersedes #14's 'Setup asks global or local'.
405
+ 57. **Build order and plan decisions (architect, user-approved 2026-10-27).** Order: src/types → provisionBrain 1–3 → install 1–3 → upgrade 1–6 → cli/init 1–3 → src 1 → main-agent prose (template config section, src/index.ts aide_init/aide_upgrade/aide_info descriptions, cli/init --help) → provisionBrain 4 (fingerprint append + drift pin after the config-section prose) → install 4 (delete launchModeChoices, last). Decisions: launch-mode params (--mode, aideMode, brainMode) are deleted, not defaulted; the tool writes the npx→global switch (re-checks the global install, splices command/args under the existing key, parse-diff guard), the agent only installs; the pin move is unchanged and only under the `aide` key; the brain launcher change targets `mcpvault <path>` and refuses until mcpvault is installed globally; a global entry under `aidemd-mcp` is not drift; the CLI installs first and throws on failure so nothing is written.
406
+ 58. **Pipeline viewer scope (user, 2026-11-22).** Backend first: the event log, its single writer (the `aide_observer_event` MCP tool) and the `aidemd-mcp view` server with its JSON API and SSE stream are built now; the page UI waits for the designer's output (designer prompt in the brain at projects/aidemd/pipeline-viewer/designer-prompt.md). History stores prompt text — the row shows the first line, the detail the full prompt (local only). One task, several modules: the structure gate and per-module plans split the work.
407
+ 59. **No hooks; the orchestrator reports every action (user, 2026-11-22).** No Claude Code hooks are installed. The `aide_observer_event` MCP tool is the only writer of the per-session event log (location: decision #62); the /aide skill calls it for each action (prompt received, task picked/moved, phase started/finished with agent and module, gates waiting/resolved, plan steps checked, QA verdicts, files written, commits, errors). The tool stamps the time server-side; the session id is the MCP server process (one server per Claude Code session). User's reasons: hooks can't tell which pipeline phase is running; the agent can report everything. Calls are kept terse (short arguments, one-word result) to limit tokens. Amended (user, 2026-11-25): agent events stay the only source of pipeline meaning; Claude Code hooks may report activity and session end only, for session liveness (task `observer-judges-session-liveness-from-hooks-and-process`).
408
+ 60. **Board location is reported by the agent (user, 2026-11-22).** The observer never reads or interprets brain.aide or CLAUDE.md, because future brain plugins may define their path differently. When /aide starts a session, its first aide_observer_event is session-started carrying session metadata the agent resolves itself: project root, kanban tag, and the brain's folder path (absent for brains not stored as plain folders). The observer locates the board from the newest session's metadata; a `--brain <path>` passed to `aidemd-mcp view` overrides; with no path the board shows unavailable with the reason; nothing else fails. Unparseable task notes show as a task marked unreadable.
409
+ 61. **Approved structure — the observer (user, 2026-11-22, revision 4).** One feature name, `observer`. Data side src/service/observer/ (spec only, no code; holds the feature Strategy) with spec'd children event/ (operations record, read, delete; shared/schema), kanban/ (board/read, task/read; board location from the latest session's reported metadata, --brain override) and status/ (files + events + board → Status; helpers buildModuleNodes, deriveNextStep, foldSessions, buildRail, buildHistory, readSessionRecord, agentPhases). HTTP layer src/observer/ (startObserver: port + token → replay → serve; rebuildStatus composes event/read, kanban and status; routes getIndex, getStatus, getEvents, getFile, getTask, postEvent, deleteSession, streamUpdates; guardRequest; page/ reserved for the UI). src/util/.aide (buildTreeData, countCheckboxes moved in; runtimePaths). src/cli re-specced with dispatcher (init, sync, view) and the explorer in src/cli/tree/. Thin adapters without specs: tools/observer/event (aide_observer_event → event/record), cli/view, tools/observer/init (aide_observer_init), tools/observer/start (aide_observer_start → starts src/observer detached). tools/cleanup uses util countCheckboxes. Spec order: src → util → cli (+tree) → service/observer (+synthesize) → event → kanban → status → src/observer (+short body). Build order: util → tools/cleanup → event → kanban → status → src/observer → cli → src.
410
+ 62. **Runtime files live outside the project (user, 2026-11-22).** .aide/ is for artifacts only. Event logs and the running viewer's address go to per-user app data keyed by project (Windows %LOCALAPPDATA%\aidemd\<project-id>\, Linux ~/.local/state/aidemd/<project-id>/, macOS ~/Library/Application Support/aidemd/<project-id>/). Nothing in the repo, nothing to gitignore. Replaces the earlier .aide/events/ and .aide/viewer.json paths. (Folder naming and per-OS paths refined by #66.)
411
+ 63. **The pipeline never depends on the viewer (user, 2026-11-22).** The viewer is only a place for the user to see what is going on. aide_observer_event reporting is best effort: a failed or skipped call never stops a cycle; the History row is just missing and state still comes from files. No pipeline step or agent behavior changes for the viewer's sake. Approval events carry the path of the file awaiting approval (e.g. plan.aide); the viewer shows that file directly or when the user clicks the log line. No new file types; the architect's structure mode is unchanged.
412
+ 64. **src/.aide revised (user-confirmed 2026-11-22).** The tool-surface rule tying new tools to new phases is dropped (user: tools already serve many purposes beyond phases); kept: no two tools overlap in responsibility; no pinned tool count or roster. Description and intent name a third, read-only observation channel the pipeline never depends on. Observation outcomes live in the pipelineStatus spec, not in src.
413
+ 65. **Endpoint push, no file watcher (user, 2026-11-22).** aide_observer_event → event/record always appends one line to the session file in per-user app data first (the MCP server is the file's only writer); then, if an observer is running (address + random token in observer.json in that app-data folder), it POSTs the event with the token, ~250 ms cap, every failure ignored. The observer replays session files once at start, then receives events only through postEvent (Host check + token + JSON only, validated against the shared schema, deduped on sessionId + seq), pushes them live and rebuilds status from project files on each event and request. No file watching anywhere.
414
+ 66. **Runtime folder and sessions (user, 2026-11-22).** Per-project folder in per-user app data named project name + short hash (e.g. aidemd-mcp-3f9a2c), resolved per OS: Windows %LOCALAPPDATA%\aidemd\, macOS ~/Library/Application Support/aidemd/, Linux $XDG_STATE_HOME/aidemd/ else ~/.local/state/aidemd/. Contents: events/<session>.jsonl and observer.json. Unrelated to .aide/session.aide. Sessions are kept; the observer lists past sessions and the user can delete one from the page (event/delete; the only control in this version; removes only that app-data file).
415
+ 67. **Spec on a code-less domain folder (user, 2026-11-22).** src/service/observer carries the feature spec and Strategy with no index of its own; its children hold the code and plans.
416
+ 68. **Three observer tools: init picks the port, start runs it, event records (user, 2026-11-22).** No combined session-start tool; each tool has one job. aide_observer_init picks a free port and returns it, starting nothing; it is called once per project, when the instructions file has no `Observer port:` line, and the agent writes `Observer port: <n>` into the instructions file (written by the agent, like the kanban tag). aide_observer_start starts the observer on the given port (port required) or reports the one already running, returning its address; a busy port means it does not start and names the port — never a silent move. aide_observer_event records one event and forwards it to a running observer; the session's first event is a session-started report carrying the agent-reported project root, kanban tag and brain folder path. /aide at boot: no port line → aide_observer_init → record the port → aide_observer_event(session started) → aide_observer_start(port), unless the instructions file says `Observer: off` (the agent just doesn't call it; no setting reaches a tool). aide_observer_event's reply says 'recorded; observer not running' when the post fails; the agent then calls aide_observer_start once more; a failed restart is mentioned to the user once and never blocks. Tools never read or write the instructions file.
417
+ 69. **Observer specs confirmed (user, 2026-11-22).** The user confirmed all eight observer-feature specs: src/service/observer (feature parent), src/service/observer/event, src/service/observer/kanban, src/service/observer/status, src/observer, src/util, src/cli (re-spec) and src/cli/tree (moved explorer spec), plus src/.aide earlier (#64). Unparseable task notes show as unreadable cards.
418
+ 70. **Observer strategy approved (user, 2026-11-22).** Bodies + briefs of src/service/observer (7 decisions) and src/observer (4 decisions) approved. Defaults: project key from the observer server's own root (lowercased on Windows) + short hash; a session is live while its MCP server process runs or its last event is under 30 minutes old; session id = sortable timestamp + short random suffix; one restart attempt per run of failed posts, reset after success. Observer startup order: bind → token → hold incoming posts → write observer.json → replay → merge deduped on (sessionId, seq) → open reads + stream. Host accepted as 127.0.0.1:<port> or localhost:<port>. The page keeps a live server-sent-events connection; an accepted post is pushed to it immediately (user requirement; end-to-end test in the src/observer plan).
419
+ 71. **Extra plan: tools/frontmatter (user, 2026-11-22).** tools/frontmatter/checkCompletion imports the old checkbox counter; a one-step plan switches it to util/countCheckboxes, built after util and before the cleanup plan deletes findOpenItems. util/scan's own counter and its import from tools/frontmatter (both against src/util/.aide) are out of scope — logged as a p2 bug task in Backlog.
420
+ 72. **Status shows files, not next steps (user, 2026-11-22).** The status builder derives no per-module next step and does not mirror the /aide Resume Protocol. The tree always shows every AIDE file with its status and progress; a waiting event names a file and the page opens it as if clicked (newest waiting file wins; the page opens it only when the surfaced file changes, so the user's own clicks win); it clears on the resolved event or when the file stops awaiting approval; a missing file surfaces nothing. The phase rail is built only from reported events (phase running now + phases finished this session for that module). Reads need the token too (page link carries ?token=). Phase names are a closed list. The process-alive check lives in src/util. The shipped explorer launcher (.aide/bin/aide-tree.mjs) is repointed to dist/cli/tree/index.js for new installs; existing launchers keep working (decision #74), so there is no [migration] entry.
421
+ 73. **Plans approved (user, 2026-11-22).** Approved and moved to approved by the orchestrator through aide_frontmatter: src/util (7 steps), src/tools/frontmatter (1), src/tools/cleanup (2), src/service/observer/event (11), src/service/observer/kanban (6), src/types (3), src/observer (12), src/cli (4), .aide (1, launcher), src (6), plus briefs src/service/observer/brief.aide and src/observer/brief.aide. src/service/observer/status plan (9 steps) is being amended with the event-based phase rail and is approved after. Build order: util → tools/frontmatter → tools/cleanup → event → kanban → types step 1 → status → types step 2 → src/observer → cli → .aide launcher → src; one implementor per numbered step.
422
+ 74. **Old explorer launchers keep working (2026-11-22, fix round).** aide_upgrade has no category that updates .aide/bin/aide-tree.mjs and installs never overwrite it, so the dispatcher src/cli/index.ts runs the explorer when executed as the main script (old launchers run dist/cli/index.js); imported, it only exports runCli. New launchers point at dist/cli/tree/index.js. No [migration] entry.
423
+ 75. **One observer per machine (user, 2026-11-23).** Supersedes the per-project port and per-project observer of #68 and #70 (port, single-instance and record parts only). One observer server runs per user per machine and shows every project and session: a home view lists projects with their live and past sessions; each session view is what a project's view was (tree, board, status, history), built from that project's root as its newest session reported it, with file reads confined to that root. Port: a fixed built-in default, overridable by an environment variable (default 24680, env AIDE_OBSERVER_PORT; both settled at plan time if the architect finds a reason to change them); a busy port is still named, never moved. aide_observer_init and the `Observer port:` line in the instructions file are removed; `Observer: off` stays per project. aide_observer_start takes no port; if an observer is running it does not start another and returns the link to the calling session's view; if the running observer is an older AIDE version than the caller, the caller asks it to shut down (token-protected, same-user tools only) and starts the newer one on the same port (events are on disk, so nothing is lost); same or newer running → keep it. The running-observer record (address, token, pid, version) moves from each project's app-data folder to the app-data root; event logs stay per project folder. The view command's --port becomes an optional override; its --brain override applies only to the project the command was run from. Event recording, file-first logging, dedupe, liveness, delete and the token/Host/Origin rules are unchanged. Nothing is committed or released yet, so no [migration] entry: the per-project form never shipped.
424
+ 76. **Single-observer specs, strategy and brief approved (user, 2026-11-23).** Frontmatter of src/observer, src/service/observer, event, kanban and util confirmed; bodies of src/observer and src/service/observer rewritten; src/service/observer/brief.aide approved (40 commitments). User answers: an old observer still alive a few seconds after the shutdown request is neither replaced nor killed — the start reply names its version and link (#37); a project whose sessions never reported a root is listed on home with sessions and history, its tree and board unavailable with the reason (#38); port precedence --port > AIDE_OBSERVER_PORT > 24680, an invalid value refuses the start by name (#39); the view command's link opens the newest session of the project it was run from, else home (#40). event/read lists projects and sessions for the home view; status stays per project. The designer prompt (brain projects/aidemd/pipeline-viewer/designer-prompt.md) now has a Home section, breadcrumb and states 10–12; the user received a follow-up for the aidemd.dev design session. The design export from that session (D:\Downloads\AIDEMD.DEV.zip, per-project, no home view yet) is the UI reference; a newer export with home is expected.
425
+ 77. **One-observer round built, QA'd, cleaned (2026-11-23).** 7 plans / 24 steps built (util, tools/info, event, types, src/observer, src tools, cli); QA + playbook review → 25 fix items, all fixed; re-QA PASSED; full gate tsc clean, 298 files / 4280 tests. Behavior fixes from QA: a reported project root that is not absolute counts as no root, and resolveConfinedPath refuses a non-absolute root; aide_observer_start re-checks for this user's observer after a spawned child exits with a busy port (a foreign program on the port now reports busy after the 10 s wait). Shared helpers added: util/describeError, util/runtimePaths/shared/runtimeNames, observer/shared/parsePort, observer/shared/buildObserverMessage. Prose updated by the main agent: aide_observer_start/aide_observer_event descriptions, /aide Step 6 + restart rule (skipped under `Observer: off`) + "act on" wording, CHANGELOG [Unreleased] (one observer per machine, two tools, JSON API now; page later), view --help, BOARD_HINT. aide_observer_init removed. Ephemerals cleaned; src/service/observer/brief.aide kept (approved) for the UI round. Retro at brain process/retro/2026-11-23-aidemd-single-observer.md. The util/scan upward import stays in backlog task util-scan-duplicates-checkbox-counter-and-imports-tools.
426
+ 78. **Observer page round (user, 2026-11-23).** The user asked to build the page now and then QA everything. Design export copied read-only to design/observer-page/design_reference/ (from D:\Downloads\AIDEMD.DEV.zip; it is a prototype — React + Babel from CDN, sample data, a design-tool tweak panel — not a README-style handoff, so the design-handoff skill's rules are applied through agent prompts and its rule installer is not run). Decisions: bundle with esbuild from React 19 (devDeps esbuild, react-dom pinned to react's exact version, @types/react-dom, @fontsource/jetbrains-mono — approved); JetBrains Mono shipped and inlined, no CDN/Google Fonts; Home built now in the export's visual language until the designer's Home arrives; new spec src/observer/page/.aide confirmed (frontmatter only); one token per user kept across observer restarts (stored at the app-data root); design copy the observer can't back up replaced with true copy, undrawn-state copy as written in the page plan, data the observer doesn't report left out, rail cells only from reported events, history labels from the status builder — QA treats these as known visual differences. Plans approved: .aide/plan.aide (3, packaging), src/observer/plan.aide (5), src/observer/page/plan.aide (12); brief now 59 commitments. Build order: root 1 → observer 1–3 → page 1–12 → root 2 → observer 4–5 → root 3 → QA with a Playwright visual pass (1440×900 and 375×812, dark + light, fixture observer on port 24799 via `npm run observer:fixtures`, never 24680).
427
+ 79. **Observer page: new design project, full redesign (user, 2026-11-23).** The page was built from the aidemd.dev design export (20 plan steps; QA: code PASSED, Playwright found 4 drift items, playbook review ~20 items), but the user found the design hard to read (measured: 79 font sizes 9.5–12px monospace; --dim2 ≈ 2.9:1, green-as-text 3.1:1, several light-theme tokens < 4.5:1). Decision: a NEW standalone Claude Design project with a full redesign and its own identity (not the aidemd.dev theme). Prompt v2 written (brain projects/aidemd/pipeline-viewer/designer-prompt-v2.md; given to the user): readability hard requirements (body ≥14px, labels ≥12px, AA contrast both themes, proportional UI font with mono only for code-like text, status not by color alone, no sideways scroll at 375), Home + session view, states 1–14, the data the observer really has, a proper handoff folder (README with Acceptance criteria + What NOT to do, design_reference/). An earlier re-theme prompt for the aidemd.dev project is superseded. When the new handoff arrives: re-spec the page's visual outcomes against it, rework the page components (data layer, stream, reducer, server, fixtures, tests stay), replace design/observer-page/design_reference and the styles, rerun the Playwright pass.
428
+ Fix round status: done and kept — history scoped to the focused session; plan drawer no repeated steps (+2a/2b numbering); no sideways scroll at 375 (additions CSS); idle/no-root rail keeps the last module's finished phases; invalid link hides the conn pill; NowCard live region; <main>+skip link; all 7 src/observer items (sendJson→sendBody, pageAssets, routeTable, pageTitle, tokenFormat+loadToken helpers, seedFixtures task input object, FixtureTask.priority derived) and both .aide/todo.aide script items. PAUSED (10 open items in src/observer/page/todo.aide — drawer aria, icon labels, ProjectRow button, page types, UnknownRoute, inline helpers, dead prop/link builder/liveness predicate, title copy, formatAgo tail, missing tests): carried into the redesign round; the component-markup ones become requirements of the rebuilt components, the data-layer ones get fixed then. src/observer/todo.aide and .aide/todo.aide are fully checked (to be cleaned with the round).
429
+ 80. **New design handoff arrived; redesign round started (user, 2026-11-23).** The new design project returned a proper handoff (D:\Downloads\aide-viewer-handoff.zip → design/aide-viewer-handoff/: README with routes, layout, a component table, interactions, tokens with measured contrast — lowest 6.46:1 — 15 acceptance criteria and a What NOT to do list; design_reference/ with Viewer.dc.html, Prototype.dc.html, Components.dc.html, Tokens.dc.html, viewer.css, contrast.json — read-only). Own identity: Inter for UI, JetBrains Mono for code-like text, new token set (--bg/--surface/--raised/--text/--text-2/--text-3/--run/--done/--danger/--warn/--wait…), amber "waiting" fill used by nothing else. User decisions: adopt the handoff routes — `/` Home, `/p/:project/s/:session`, `?tab=tree|plans|board|record|sessions` and `&item=module:…|task:…|file:…|event:…` deep links (supersedes the route shape of brief #46; the tools' and view command's printed links change; nothing released, so no old links break); add @fontsource/inter (OFL) as a dev dependency, self-hosted like JetBrains Mono. The README's acceptance criteria and What NOT to do become the page spec's outcomes. The handoff's install command (`npx @aidemd-mcp/server init`) is marked as an assumption — the page keeps the real command from aidePackage. Plan: re-spec page outcomes → architect plan for the rebuild (components to the handoff's component table; data layer, stream, reducer, server, fixtures, tests carry over; the 10 paused page fix items fold in; old design/observer-page reference and pv styles retired) → build → QA with a Playwright visual pass against design_reference/ → fix → cleanup → prose.
430
+ 81. **Observer page redesign built, QA'd, fixed, cleaned (2026-11-24).** Built from the new handoff (design/aide-viewer-handoff/): 5 plans / 22 steps (page 13, server 4, packaging 3, two link-test steps); routes `/` and `/p/:project/s/:session` with `?tab=` and `&item=` deep links; viewer.css byte copy + scoped additions; Inter + JetBrains Mono self-hosted (@fontsource/inter added, user-approved); fixtures re-sourced from the handoff plus Home sets (`npm run observer:fixtures -- --set sessions|home|home-many`). QA: code PASSED with 3 notes, Playwright (no pixel diff possible — the .dc.html prototype needs the design tool's runtime; verified via byte-identical CSS, markup/copy and computed styles) found 2 items, playbook review ~20 items → 26 fix items + P13 (History tab sideways scroll at 375) + P14 (fixed-sleep flaky test), all fixed; re-QA and a Playwright re-pass PASSED; full gate twice 556 files / 5791 tests, tsc clean. User decisions 2026-11-24: a bad/expired token on a page link shows the calm invalid-link screen — the page shell (GET `/` with Accept text/html, GET `/p/:project/s/:session`) and allowlisted `/assets/<name>` are served without the token, every data route still requires it, Host/Origin checks apply to every request (brief #26/#52/#55/#61 amended, new #67); touch targets ≥ 44px at phone width via a phone-only additions rule. Orchestrator decision: handoff inline styles port as React `style` props (CSP `style-src 'self'` doesn't block CSSOM styles). Shared helpers added: protocol.tokenQuery/sessionRoute, event/shared/buildSessionPath, util/{timeUnits, baseName, firstLine, checkboxPattern}, runtimePaths/shared/projectKeyHash, page shared/rootFolder, page __fixtures__/. vitest now also runs scripts/**/*.test.ts (scripts are still not type-checked by tsc). design/observer-page/design_reference (v1) and design/carried-page-fixes.md retired; designer-prompt-v2.md kept. Retro: brain process/retro/2026-11-24-aidemd-observer-page-redesign.md. Ephemerals cleaned; src/service/observer/brief.aide kept (approved).
431
+ 82. **Superseded by #83.** **Session page: slim sticky waiting bar (user, 2026-11-24).** The handoff's full-size waiting banner is replaced by a slim (56px) one-line sticky amber bar under the header, shown only while the now card is scrolled out of view (IntersectionObserver with a rootMargin equal to the measured header height; default 'in view'); the one deliberate departure from the design handoff, decided by the user 2026-11-24 and recorded in src/observer/page/.aide.
432
+ 83. **Observer page reworked hand-in-hand with the user (2026-11-24).** No pipeline, then specs/tests updated: desktop project page is a fixed frame — header (Projects button + name), one 64px status row (amber waiting banner with Open <file>, else running/fix/idle bar), intent tree as the only main content (sticky search + Filters menu; starts collapsed; root labelled `root`; every .aide file a chip), always-present collapsible Details column (module = per-file accordion with every frontmatter field and `##` section, root includes session.aide; task = chips + full note), bottom drawer (History with its own session picker/order in its heading, Sessions with archive, Board), phase-rail footer. Session picker changes only History/rail/status, never navigates. Home = projects only (Starred + All, star per row, Activity/Custom order remembered and calm, expandable rows with task card + rail, Open project button, floating waiting button). Ended sessions archive before delete. Home kanban board removed pending a backlog task.
433
+ 84. **Observer page bottom drawer spans both columns (user, 2026-11-25).** The bottom drawer (History, Sessions, Board) sits under both the tree and the Details column across the full width. Opening it pushes both columns up instead of floating over them. Its height is bounded by the bar plus 160px below and by leaving 120px of the columns in view above. The Details column (min 360px, leaves 320px for the tree) and the drawer each resize through the shared ResizeHandle, and the sizes are kept in localStorage `aide-viewer:details-width` and `aide-viewer:bottom-drawer-height`.
434
+ 85. **Dedicated aide-observer skill and observer settings (user, 2026-11-25).**
435
+ - A new `aide-observer` skill holds everything about the observer. It covers what it is and that reporting is best effort, the session start (report session_started and the prompt, start the observer), the reporting table (including `picked` for a task taken up, even one already In Progress), the phase names and module rule, and the restart rule.
436
+ - The skill also says that the agent gives the user the observer link at the start of the session, as soon as the boot sequence is complete.
437
+ - The `/aide` command becomes a pure router with no conditions: it invokes `aide-observer`, then `aide`.
438
+ - The `aide` skill keeps no observer text: boot Step 6, the "Reporting to the observer" section and the observer sentence in the Board tracking Start bullet are removed. The only remaining coupling is one-way: the observer skill's table is written in /aide's terms, so a new stage or gate needs a row there.
439
+ - The skill's description tells agents to run it before the `aide` skill in any /aide session, including when `aide` is invoked directly, unless told otherwise. That is the safety net for sessions that skip the command.
440
+ - The skill does every check itself: the observer tools are available; the project settings; the user said not to observe this session.
441
+ - The settings live in a new project config file `.aide/config/observer.aide` with two settings, both default on, enforced by the tools themselves. `observer.serve` controls whether the viewer is started; `aide_observer_start` refuses with 'serving is off'. `observer.record` controls whether events are written to the per-user log; `aide_observer_event` answers 'not recorded: recording is off'.
442
+ - A per-session 'don't observe this' from the user turns both off for that session only.
443
+ - The old free-text `Observer: off` instructions-file line is replaced, with a [migration] entry turning it into serve off.
444
+ - Other parts of the change: the aide_init pointer stub, the install registry and versions manifest (seventh skill), index.md's skills table, and CHANGELOG entries.
445
+ 86. **Observer settings and rail choices (user, 2026-11-25).** `.aide/config/observer.aide` is always installed: aide_init and /aide:upgrade write it with observer.serve and observer.record both on; turning one off is a hand edit of that file (no tool governs it). The [migration] for an `Observer: off` instructions-file line sets observer.serve off in that file. A per-session 'don't observe this' is skill-only: the aide-observer skill makes no observer calls for the rest of the session; nothing is stored and the tools enforce only the project file. The rail shows 'Working outside the pipeline' when the session's latest events are file_written or commit with no phase running (no new event kind).
446
+ 87. **Observer config module, pipelines and skipped phases (user, 2026-11-25).**
447
+ - The settings reader and default text are a child module `src/service/observer/config` (not a top-level service). observer.aide is YAML frontmatter `serve: true` / `record: true` (booleans) plus a short prose body.
448
+ - A malformed observer.aide fails closed: neither serve nor record; the tools reply with the fault and a valid example file. The aide-observer skill repairs it at session start only with the user's OK.
449
+ - A pipeline is one feature flow run by the /aide orchestrator, from the stage where it starts to completion (cleanup done) or abandonment, across every module it plans. New event kinds `pipeline_started` (pipeline, starting phase) and `pipeline_finished` (completed | abandoned | paused at session end). Every phase, gate, step and QA event names its pipeline. Hand work belongs to no pipeline.
450
+ - Pipeline id is the kanban task slug, else a short name the agent gives. A later session resuming the same task continues the same pipeline, so a rail spans sessions.
451
+ - One rail per pipeline. New event `phase_skipped` (phase, reason) for every skip — starting later than spec, research or synthesize skipped by routing, QA passing with no fix loop — so the rail always shows the full stage list, each done, skipped, running or pending. Within a pipeline, a later phase starting or a gate resolving marks earlier phases done; a running phase ends at the next phase in that pipeline, a commit or the session end.
452
+ - The aide-upgrader gets one named exception: with the user's OK, after upgrade creates observer.aide, it sets `serve: false` and removes the old `Observer: off` line.
453
+ - Defaults taken from the architect: `aide view` ignores serve; ship `.aide/docs/observer-aide.md` (registered); one parent spec at src/tools/observer; with serve on and record off, the start reply says recording is off; a refused session_started does not count for the second-session_started guard; upgrade gets its own `observer-config` category and init rides the methodology category.
454
+ 88. **Mandatory observer, one live session, session-scoped rails (user, 2026-11-25).** Supersedes the serve/record settings parts of #85, #86 and #87.
455
+ - The observer is mandatory and the single source of truth for a project's sessions. There is no `.aide/config/observer.aide`, no serve/record settings, no observer-config upgrade category or install step, and no observer-aide doc. The `Observer: off` instructions-file line's [migration] removes the line.
456
+ - Only one session is live per project, so only one pipeline is active at a time. `aide_observer_start` returns HALT when another live session exists in the project, naming it. The agent reports it to the user and asks what to do (it may be stuck, or may never have reported finishing); it is handled before a new session starts.
457
+ - Liveness comes from Claude Code hooks (activity, session end) plus a pid+start-time process backstop, replacing the 30-minute event-age rule (amends #59).
458
+ - Rails are session-scoped: they exist only while their session is live. On pipeline_started for pipeline X, status reads X's events in the project's earlier sessions (ended and archived included; a deleted session is forgotten) and marks the stages they finished as done. Pipeline state lives in the session logs; no separate pipeline record.
459
+ - Kept from #85 to #87: the aide-observer skill and /aide as router; pipeline_started, pipeline_finished, phase_skipped and the `pipeline` field (task slug, else a short name); every skip reported; 'Working outside the pipeline'; per-session 'don't observe this' is skill-only.
460
+ - File snapshots in the event log (so agents can recall deleted plans and specs) are out of this pass; a separate backlog task, to be created with the user's OK.
461
+ 89. **Approved structure for the observer pass (user, 2026-11-25).** Supersedes the pid backstop in #88.
462
+ - Tree: NEW `src/tools/observer/.aide` (start with the HALT check; NEW tool `aide_observer_end_session` {sessionId} writing an ended mark for another session of this project, refused for the caller's own, never deleting anything; event reply names the session id and refuses once the session was ended). NEW `src/cli/hook/.aide`: `aidemd-mcp hook` reads Claude Code hook JSON on stdin (SessionStart, UserPromptSubmit, PostToolUse → working; Stop → waiting; SessionEnd → ended), writes presence via event/touchPresence (file first), then pings a running observer (new route postPresence); exits fast, never fails the agent. service/observer/event: schema v2 (pipeline_started, pipeline_finished, phase_skipped, `pipeline` field; v1 still replays; envelope unchanged v, ts, sessionId, seq, pid), new touchPresence (presence keeps transcriptPath from the hook's transcript_path; SessionStart written by Claude session id and joined when the session_started reply links it), new endSession, new shared/readPresence and shared/readTranscriptActivity, judgeLiveness rewritten, read returns { state working|waiting|ended, lastActivityAt, endedBy? }. status: liveness and earlier-session events are inputs (never imports event, #14), new resumePipeline, findRunningWork per current pipeline, one rail for the live session's current pipeline (or the last one it finished, kept until the next starts or the session ends), skipped and outside states. src/observer: postPresence route; hands status liveness and the project's archived logs. page: rail with skipped cells, outside state, pipeline name; working/waiting/quiet; Home row. install: `hooks` category merging only aide's own entries into .claude/settings.json (Claude Code only), skills/aide-observer as the 7th skill. upgrade: `hooks` category (consent-gated merge, every other byte unchanged). util: runtimePaths presence and ended-mark paths; sessionIdleLimit becomes only the 'quiet, maybe stuck' limit. types: re-exports, InitCategory/UpgradeCategory += hooks. startServer registers the end-session tool.
463
+ - Liveness (no pid check, no process start time, no heartbeat, no reliance on the aide MCP server): an ended mark (SessionEnd or aide_observer_end_session) → ended; else the last hook state with its time; last activity = newest of hook time, transcript last-write time, newest event time; quiet past the limit adds 'quiet N min, maybe stuck'; never auto-ended. Sessions with no hooks use agent event time and are never auto-ended.
464
+ - HALT is a hard stop: nothing proceeds until the other session is ended through aide_observer_end_session with the user's OK, or this session is closed. The HALT names the other session, its state, last activity, pipeline and phase, and says 'maybe stuck' when quiet.
465
+ - The `Observer: off` [migration]: the aide-upgrader, with the user's OK, deletes that one line from the instructions file and tells the user the observer is always on (Detect: an `Observer: off` line; Confirm: per file). The hooks category also needs a [migration].
466
+ - Spec order: src → service/observer (+ brief) → event → status → observer HTTP → page → tools/observer (new) → cli → cli/hook (new) → install → upgrade → util (only if its outcomes list helpers). Plan order: util → event → status → observer HTTP → page → tools/observer → cli/hook → install → upgrade.
467
+ - To check in planning: whether SessionStart and Stop hook inputs carry transcript_path like PostToolUse; if not, presence keeps the last path seen.
468
+ 90. **Observer must start; port fallback; quiet limit (user, 2026-11-25).**
469
+ - If the observer cannot start, that is a blocker: /aide stops, the agent tells the user, nothing proceeds.
470
+ - When a port is taken, the observer falls back through a list: AIDE_OBSERVER_PORT first if set, then 24680 to 24689 in order. The port it took is recorded in the observer's per-user record so tools and links find it. Still one observer per user per machine.
471
+ - The HALT check reads stored presence and ended marks directly; the session start (starting the observer and the one-live-session check) is where the pipeline waits on the observer. Event reporting stays best effort.
472
+ - The 'quiet, maybe stuck' limit is 15 minutes.
473
+ - Synthesize runs (Strategy needed): the parent observer body is rewritten end to end, then slices.
474
+ 91. **A down observer that cannot be restarted blocks mid-session too (user, 2026-11-25).** A report always lands in the session's own log first. A report that misses a running observer never blocks by itself; it prompts one restart. If that restart fails (no port on the list works), the agent stops and tells the user; nothing proceeds unobserved. The pipeline waits on the observer only at the session start (start and the one-live-session check) and when it is found down and cannot be restarted.
475
+ 92. **HALT counts every open Claude session; brief open questions settled (user, 2026-11-25).** Any Claude session with presence in the project that is not ended counts toward HALT, whether or not it reported session_started; an unlinked one is named by its Claude session id; the caller's own session never counts. A replacing observer reuses the old port when it is free. A long-quiet session from a host without hooks still HALTs. Two sessions starting at the same instant may both pass the check; no lock file. A just-ended session's rail is hidden. Still to check in planning: whether SessionStart and Stop hook inputs carry transcript_path.
476
+ 93. **Plans approved; legacy sessions stay live (user, 2026-11-25).** All 13 plans and the brief approved. A session with no presence and no ended mark, whatever its schema version, is judged by the normal rule (working, then quiet and maybe stuck after 15 minutes) and counts toward HALT until the user ends it with aide_observer_end_session; no legacy state. jsonc-parser@3.3.1 is an approved runtime dependency for the byte-preserving hooks merge. The page copy is approved as written: Working, Waiting on you, Quiet <N> min · maybe stuck, Ended; Pipeline <id>; Working outside the pipeline; No phase running; Skipped · <reason> (todo look); Pipeline <id> started at <Phase>, completed, abandoned; <Phase> skipped.
477
+ 94. **Hook budget restated (user, 2026-11-25).** The hook's speed budget is a paired median: overhead over a bare `node` start measured in alternating pairs, ≤ 150 ms for a quiet call and ≤ 180 ms for a call that writes and pings; every run < 1 000 ms; p95 is reported, not guaranteed; a noisy machine reports inconclusive and is rerun. On the hook path `node:http` is loaded with createRequire (a static ESM import loads undici, ~38 ms). The opt-in speed test runs after a build, before each publish. Further cuts (drop zod, bundle the entry) are backlog task `make-the-claude-code-hook-start-faster`.
478
+ 95. **Release check (user, 2026-11-25).** Every publish is preceded by `/release-check` (`.claude/skills/release-check/`): pack the build, install the .tgz in a throwaway project under a temp npm prefix with isolated per-user app data, and run init, hooks, observer and headless /aide checks; the real global install, observer and app data must stay untouched. The skill is repo-only: not in the install registry and excluded from the package. A release ships only when every check that ran passes; headless SKIPs are named and run from a signed-in terminal when the change touches boot, skills or hooks.
479
+ 96. **AIDE's per-user files move out of packaged-app redirection on Windows (user, 2026-11-25).** On Windows the per-user root becomes %USERPROFILE%\.aidemd (not redirected for MSIX packages like the Claude desktop app); macOS and Linux keep their folders. On first start the new version moves once any session history it can see from the old location into the new folder and drops the old observer record (a desktop-app process sees the app's redirected copy, a terminal process the real one, so each carries over its own). Ships with a [migration] entry. Tracked by task `aide-per-user-files-land-in-a-packaged-apps-appdata` (In Progress, p1, bug).
480
+ 97. **Hook budget raised (user, 2026-11-25).** Paired-median overhead ≤ 175 ms for a quiet call and ≤ 200 ms for a refreshing call (was 150/180), every run < 1 000 ms, until `make-the-claude-code-hook-start-faster` lands; recorded under brief #103.
481
+ 98. **Boot staleness covers the hooks (2026-11-25).** aide_info's `outdated` adds a `hooks` key when the upgrade's own hooks check (detectFramework + checkHooksConfig) reports anything but `matches`, even without `.aide/versions.json`; silent on failure; never for frameworks without hooks. Malformed settings count as stale (re-offered each boot until fixed) — plan Decision, user may revisit.
482
+ 99. **The observer's board location is declared, not reported.** Optional brain.aide frontmatter field `kanban` (`source: folder` + absolute `path`), read through parseBrainAide; absent = valid (board unavailable with a /aide:brain config hint), malformed = reported alongside, never halts boot; empty path = unwired. The template ships it unwired and the config prose fills it from the vault path. Code never derives it from launcher args. A frontmatter field (not a body section) because the observer is code and template sections are fingerprinted. Non-folder backends omit it; `source: command` (a script printing AIDE's board format, read from the project's own config, never relayed by the agent) is task observer-board-reader-command-for-any-brain. `view --kanban` overrides; `--brain` is a deprecated alias for <p>/kanban. session_started brainPath is accepted but no longer locates the board.
483
+ 100. **SessionEnd reliability (task observer-session-stays-open-when-session-end-hook-is-killed).** Three parts, agreed with the user 2026-11-26: (a) AIDE's Claude Code hooks are installed only in each machine's gitignored `.claude/settings.local.json`, never in the committed `.claude/settings.json`, so no machine-specific path is ever committed and hooks never run twice; each developer's own /aide boot (aide_info `hooks` outdated → /aide:upgrade) writes them with that machine's path. Needs a [migration] moving existing AIDE hooks out of `settings.json`. (b) The hook command is a direct `node <this machine's global install>/dist/index.js hook` instead of the npm shim, saving ~0.5 s on every hook call (PostToolUse runs after every tool call). (c) The SessionEnd hook gets a `timeout` (10 s) so archive/exit never cancels it — verified to work on archive. (d) Observer-side backstop, approved by the user 2026-11-26: a session that never reached `ended` whose transcript's last record is `cost-state` is judged ended on read, writing nothing, failing safe to today's behavior when the transcript is missing/unreadable/different. Further user decisions 2026-11-26: (e) Ended marks are not permanent — user: 'ended marks shouldnt be permantent.. if you reopen a session and start working on it again calling the observer tool should report the session was previously ended and have the agent check for other running sessions. if none exist it can keep moving and the ended mark should be changed to active'. Flow: a report from a session with an ended mark is recorded (no longer refused) and its reply says the session was previously ended and to run the start check; aide_observer_start then HALTs if another session of the project is open, else reopens the session (its ended mark cleared, shown working again). Applies to every ended mark (SessionEnd hook, the user's approval, a session judged closed from its transcript). Because marks are no longer permanent, a session judged closed from its transcript may get a real ended mark. (f) A closing record counts only when its session id matches the presence's Claude session id (safety; chosen by the orchestrator, the user deferred). (g) `.claude/settings.local.json` is added to the project's .gitignore by install/upgrade when not already covered, as one reported step touching no other line (user's choice). (h) A malformed shared `.claude/settings.json`: the hooks category stops, writes nothing and reports the file (user's choice); otherwise the upgrade removes the old AIDE hooks from it and installs the local ones in one apply. (i) The hook command keeps reading the event from stdin (no `hook <event>` argument). (j) Reopen narrowed to the most recent session only (user, 2026-11-26: 'should aide sessions be resumable? if theres a newer one i think not. if its the most recent one yeah? … then again if it was marked ended by another session that would mean theres already a newer one' → 'most recent session only'): an ended session reopens through the start check only when no other session of the project started after it and none is open; if a newer session exists (open or ended) it stays ended and the agent is told a newer session has worked the project since, so the user continues in a new session (hard stop). A session ended by another session's approval never reopens. Newer = later session start time. The three observer specs (src/service/observer, src/service/observer/event, src/tools/observer) are amended for #100(e) and (j); their bodies and the observer brief are re-synthesized next.
484
+ 101. **Reference docs (task add-aide-reference-folder-destructure-tools-add-hooks).** `.aide/reference/` holds one page per MCP tool (`tools/<tool_name>.md`) and per Claude Code hook event AIDE listens to (`hooks/<EventName>.md`), each folder with an `index.md` table of contents. Pages describe behavior for readers, not installation. Format: frontmatter `name` + one-sentence `description`, one `# <name>` H1, fixed sections (tools: When to call it, Parameters, What it returns, Guarantees; hooks: When Claude Code sends it, What AIDE records, Effect on the observer). aidemd.dev builds docs pages from them (it already does the same for .claude/commands, .claude/agents, .claude/skills and .aide/docs via src/data/docsCategories.ts there; the site needs new roots for .aide/reference). Every tool or hook change updates its page in the same piece of work (CLAUDE.md rule). Still to do: ship `.aide/reference/` to host projects through init/upgrade with version tracking, tests and a changelog entry (pipeline), then release.
485
+ 102. **Reference category layout, approved by the user 2026-11-26 (task add-aide-reference-folder-destructure-tools-add-hooks).** `.aide/reference/` ships to host projects as its own install/upgrade category `reference` (not folded into methodology docs), byte-faithfully at `.aide/reference/<tools|hooks>/<page>.md` (host path derived from the doc hub's parent, like versions.json). New module `src/service/install/reference/` with its own `.aide` (narrows src/service/install), beside installMethodologyDocs, one byte-faithful step per page. The page roster lives in initContent as a hand-kept list (`listReferencePages()`, entries `{ canonical, hostPath }` with subpaths) plus a test that fails if the list and the folder disagree in either direction (user's choice over reading the folder). Category key `reference` in both aide_init and aide_upgrade; in the init wizard it runs right after methodology (user's choice). versions.json slugs `reference/tools/<name>`, `reference/hooks/<name>` and the two `index` pages, so aide_info `outdated` reports stale pages with no info code change. Specs: amend src/service/install/.aide and src/tools/upgrade/.aide, new src/service/install/reference/.aide; initContent, buildVersionsMeta, info, cli/init and types specs need no amendment. Code also touches src/types (category unions), src/startServer (enums and descriptions), src/cli/init (its own planner list — must change too), upgrade's detection block and buildVersionsMeta's enumerateArtifacts. No [migration] (new files only); a CHANGELOG Added bullet. Prose outside the pipeline: .claude/commands/aide/upgrade.md category list, the aide_init and aide_upgrade reference pages, the startServer description strings, CHANGELOG, maybe a pointer from .aide/docs/index.md. The module folder is `reference`, not `installReference`: the `install` parent already carries the verb (playbook conventions, Naming: folder structure is the namespace; never prefix with the parent's name); renamed at the user's direction 2026-11-26.
486
+ 103. **The playbook wins over the code around it (user, 2026-11-26).** Existing code is never a precedent: when neighbouring modules break a playbook rule, new code follows the rule and the architect lists the violations as 'Convention drift found' instead of copying them. Only a convention the project itself declares (its instructions file, linter or formatter config) overrides a playbook entry; AIDE-canonical structure still comes first. Triggered by the architect proposing `src/service/install/installReference` because five siblings already repeat the parent's verb (installAgents, installHooks, installSkills, installMethodologyDocs, installAideTree), against the playbook's Naming rule 'folder structure IS the namespace; don't prefix with the parent folder's name'. Prose by the main agent, uncommitted: `.claude/agents/aide/aide-architect.md` (new rule + 'Convention drift found' return item), `.claude/agents/aide/aide-auditor.md` (same rule), CHANGELOG [Unreleased] Changed bullet. Install tests pass (891).
487
+ 104. **License for future versions (user, 2026-11-28)**. Stay on MIT for the code and the docs, agents, commands and skills aide_init installs; no license change in the repo, no CLA. Rationale: brain `projects/aidemd/legal/session-legal-record.md`.
488
+ 105. **Discovery wording (user, 2026-11-28; task github-npm-and-mcp-registry-discovery-metadata).** AIDE is described as a framework, never as 'an MCP server' alone: the framework is the methodology docs, the skills and subagents, the .aide spec scaffolding, the MCP toolkit (tooling for agents to work with the cascading intent tree of spec files and keep them well-formed — MCP is one part, not the delivery channel), the backend-agnostic `brain.aide` plugin interface (central task board + coding playbook = team conventions), and the observer (manages running sessions, prevents collisions; a hosted version is coming, mentioned only where it can be updated, never in the GitHub About). 'intent-driven' stays (user: keep it). Pipeline steps are 'phases', not 'stages'. Short line (npm description, server.json description, ≤100 chars): 'Open-source agentic SDLC framework for intent-driven, spec-driven development, with an MCP toolkit'. GitHub About (343/350): 'Open-source agentic SDLC framework for intent-driven, spec-driven development. AIDE (aidemd) gives AI coding agents a production-grade methodology, skills, subagents and an MCP toolkit for a cascading intent tree of spec files, a backend-agnostic brain for your task board and coding playbook, and an observer that prevents session collisions.' README opening paragraph: 'Open-source agentic SDLC framework for intent-driven, spec-driven development. AIDE (aidemd) gives AI coding agents a production-grade software methodology to follow, with skills, subagents and an MCP server whose tools work with a cascading intent tree of `.aide` spec files. `brain.aide` is a backend-agnostic plugin interface that connects your AIDE projects to a central task board and coding playbook, so every agent follows your team's conventions. It ships with an observer to manage running sessions and prevent collisions between them.' Update 2026-11-28 (user): the product name is AIDEMD — 'aide is an ide, aidemd is a separate product'; AIDE stays the methodology's name (.aide files, /aide, 'the AIDE methodology'). Wherever the wording above says 'AIDE (aidemd)' it now reads 'AIDEMD' (GitHub About, README opening, Glama). MCP Registry title 'AIDEMD' (ships with the next release). Avatar everywhere: Expo's head (aidemd.dev icon-512.png) at 72% on the site's page black #0d0b08 with a ring in the site's link green #6aaa7c, 1024×1024, committed at .github/assets/expo-avatar.png; server.json icons points at its raw.githubusercontent URL.
489
+ 106. **Commit identity (user, 2026-11-28).** The user's personal GitHub account must not be named on new commits in this repo. This checkout's repo-local git config sets `user.name aidemd`, `user.email npm@aidemd.dev` (set 2026-11-28; global config still bwz3rbot, untouched; a fresh clone needs it set again). The `Co-Authored-By: Claude` trailer stays (user: 'you can keep claude as co-author'). No new GitHub account is required: an email matching no GitHub account shows as the plain name 'aidemd'. Past commits (201 authored by bwz3rbot) are left as they are — rewriting history was not chosen. Still naming the personal account: glama.json `maintainers: ["bwz3rbot"]` (Glama uses it for claiming the listing; changing it needs a GitHub account Glama can log into — open), pushes and PRs made from the personal account. Update 2026-11-28: the user created the GitHub account `aidemd-dev` (user id 362513985; `aidemd` was taken by an empty account created 2025-07-24) and wants it as the author of all aidemd commits, in this repo and the aidemd.dev site. Both checkouts' repo-local git config now set `user.name aidemd-dev`, `user.email npm@aidemd.dev`. Commits link to the account once the user adds npm@aidemd.dev as a verified email on aidemd-dev (this also links earlier commits made with that email: 86049fc, 5108984, eea7849, site da0c8ed). Planned: invite aidemd-dev to the aidemd-mcp org (needs the user's yes); the user adds it to gh with `gh auth login`; glama.json maintainers → aidemd-dev; aidemd-dev opens the punkpeye awesome-list PR.
490
+ 107. **README tools generator and scripts tree (user approved 2026-11-28, 'Go'; task github-npm-and-mcp-registry-discovery-metadata).** The README Tools section is generated, not hand-written (user: 'go with the generated version'). Approved tree: `scripts/buildReadme/` gets a `.aide` narrowing the root spec directly — `index.ts` orchestrator/CLI (reads README.md, calls renderReadme, writes only if bytes differ), `index.test.ts` the drift check (asserts renderReadme(README) === README; never writes), `renderReadme/` pure helper with `listTools/` (tool pages from src/service/install/initContent listReferencePages() + readCanonicalDoc(), tools/index.md excluded, order = the tools index page), `renderToolsSection/` (table: name, description, link https://aidemd.dev/docs/tools/<name>/, escapes `|`), `spliceSection/` (replaces text between `<!-- aide-tools:start -->` and `<!-- aide-tools:end -->`, every other byte untouched, throws on a missing, doubled or misordered marker); the `## Tools` heading stays outside the markers. npm script `build:readme` = `tsx scripts/buildReadme/index.ts`, deliberately NOT in `npm run build` (CI runs build before test, which would hide a stale committed README). The README's per-tool parameter lists (about 100 lines) are dropped; full parameters live on each tool's aidemd.dev page. Also approved: `scripts/export-pdf.ts` → `scripts/exportPdf/index.ts` and `scripts/.aide` → `scripts/exportPdf/.aide` (scope scripts/exportPdf), npm `export-pdf` script path updated; paths resolve from cwd so behavior is unchanged; `scripts/` then has no spec of its own. `scripts/build-versions.ts` stays a flat file. Follow-ups by the main agent: CLAUDE.md 'Reference Docs Stay in Sync' rule gains 'run npm run build:readme after changing a tool page'; CHANGELOG [Unreleased] bullet.
491
+ 108. **Product rename (user, 2026-11-28)**. Repo aidemd-mcp/server → aidemd-mcp/aidemd (a GitHub rename in place: stars, issues, history kept; web and git URLs redirect; never create a new repo named server, or the redirect breaks). npm @aidemd-mcp/server → @aidemd-mcp/aidemd (the user chose the org-scoped name over unscoped aidemd: more professional, groups future products under the scope). npm has no rename: publish the new package, ship a final old-name version that points existing installs at the new one, then deprecate the old name with a message naming the successor. The package installs both commands, aidemd and aidemd-mcp, so existing .mcp.json entries keep working. The GitHub org aidemd-mcp is kept (renaming it would change the MCP Registry namespace io.github.aidemd-mcp/). Not started; needs a plan covering init/sync/upgrade writing the new names, a Trusted Publisher for the new package, a new MCP Registry entry, Glama, aidemd.dev, and the awesome-list PR #21076 (update before it merges).
492
+ 109. **AIDEMD Cloud (user, 2026-11-28)**. The remote observer is the first piece of a larger hosted product: watch sessions from anywhere first, later manage sessions, talk to agents from the web, and build and deploy in the cloud — the intent-driven IDE once sketched as Kotohashi (brain projects/aidemd/kotohashi: intent-graph canvas, chat dock, intent reader, agent activity overlay, playbook marketplace, deploy panel). The user rejected the names relay, remote and Kotohashi; the product is named AIDEMD Cloud (the descriptor pattern of n8n Cloud and Grafana Cloud), a sub-brand of AIDEMD. Repo aidemd-mcp/aidemd-cloud (private), local clone D:\Code\Me\aidemd-cloud, kanban project tag aidemd-cloud, commits as aidemd-dev <npm@aidemd.dev>. The local observer keeps its name inside AIDEMD. If the builder becomes the main product it may get its own brand later; a GitHub rename or transfer keeps stars and history.
493
+ 110. **Rename design (user, 2026-11-28)**. For task rename-the-product-to-aidemd: (a) the command written into .mcp.json and hooks stays `aidemd-mcp`; the new package installs both bins `aidemd` and `aidemd-mcp`, `aidemd` being an alias for terminal use; only the package name changes. (b) The new name everywhere: npm @aidemd-mcp/aidemd, repo aidemd-mcp/aidemd, MCP Registry name io.github.aidemd-mcp/aidemd (mcpName to match), the old registry entry io.github.aidemd-mcp/server marked deleted. (c) One final release under the old name, then the upgrader does the switch (user, 2026-11-28). Verified on this machine with two throwaway packages sharing one bin: installing the second without --force is refused ('File exists'); with --force it installs and the shared command runs the new package while the old stays installed; uninstalling the old package afterwards deletes the shared command even though it points at the new one. So: @aidemd-mcp/aidemd 0.21.0 is published first; then @aidemd-mcp/server 0.20.6 from the same commit (only package.json name/mcpName swapped at publish; not published to the MCP Registry; tests not run on the swapped copy) whose CHANGELOG carries a [migration] entry: the aide-upgrader runs `npm i -g --force @aidemd-mcp/aidemd` (its rules allow a package install an entry's Migrate names), then aide_upgrade's hooks step rewrites hooks to the new package; the old package is never uninstalled by the upgrader; the upgrader reports that the old package is still installed, and the orchestrator asks the user whether any other project on the machine still uses it, then on a yes runs `npm uninstall -g @aidemd-mcp/server && npm i -g @aidemd-mcp/aidemd` (the reinstall restores the command the uninstall deletes). No move statement in tool descriptions or agent instructions; the move lives in the changelog only. Then npm-deprecate the old name; no further versions. @aidemd-mcp/server stays on npm (cannot be unpublished). Code kept to: the new name in aidePackage, aidePackage.formerNames read only by isAideHookCommand so old hooks are recognized and replaced instead of duplicated; old-name npx pins go through the existing mcp globalSwitch. (d) The new package continues the version line at 0.21.0. Evidence (2026-11-28): npm per-version downloads last week spread evenly over all 59 versions (mirrors/scanners), GitHub page views 9 from 8 visitors in 14 days, clones 388 from 122 (CI and crawlers) — almost no real users; AIDE has no telemetry. The user's own projects (this repo, aidemd.dev, Showfold) switch by hand: npm i -g @aidemd-mcp/aidemd, then /aide:upgrade repoints hooks that embed the old package folder path.
494
+
495
+ ## Anti-regression invariants future build phases must hold
496
+
497
+ - The section list and marker text exist ONLY in brainContract. A test guards against restatement.
498
+ - No backend-specific tool names or link syntax (vault, obsidian, note(s), wikilink, hub(s), [[, mcp__, kanban-plugin) in the contract purposes, the kanban skill and agent, or shipped docs/prose outside the template. Template section bytes are exempt.
499
+ - The kanban skill and guide never reference aide_brain, .aide/, or the orientation section.
500
+ - The status vocabulary stays closed at five values, and every consumer handles all five.
501
+ - No real contract marker token (aide-<marker>-start/-end) may appear in .claude/ or .aide/docs/ prose; the guard test enforces it.
502
+ - No user-facing `@aidemd-mcp/server@latest` in src/ (guard test), .claude/, README.md or .aide/docs/.
503
+ - Changes to existing code are surgical (doctrine in plan-aide.md and the architect, implementor and QA agents).
504
+ - **session.aide always exists and never blocks a write.** Every task tied to the work is linked by slug when there is one. A handoff is never refused or held back for missing content or a missing task. The install seeds the placeholder once and never overwrites the file. Shipped aide/handoff/spec-writer prose stays backend-neutral (no storage vocabulary).
505
+ - **aide_cleanup touches only plan.aide, todo.aide, brief.aide in the named module** — fixed names, never a directory listing, never session.aide, specs or code.
506
+ - **Pipeline ephemerals are removed only through aide_cleanup** — never a shell delete; the maintainer verifies the retro, then calls the tool; dryRun is never a required step.
507
+ - **A template section edit appends the previous fingerprint** — when any bundled brain template section's prose changes, append its old fingerprint to the outdated-sections record and update the drift pin, or old configs stop being recognized.
508
+ - **No tool returns more brain text than one decision needs** — the aide_init summary brain step stays under 4 KB on every status (test); aide_brain returns one section; aide_upgrade's brain preview returns one before/after.
509
+ - **Check `git status` before publishing** — publish.mjs commits everything already staged.
510
+ - **Published manifests come from a full clone** — scripts/build-versions.ts must refuse to build on a shallow clone; every workflow that builds keeps `fetch-depth: 0`; this repo never commits or ships `.aide/versions.json`.
511
+ - **Template read and contract listing never read the host config** — their answers are identical whatever state .aide/config/brain.aide is in; draft validation reuses the host check's parser and fault mapping and refuses paths outside the project.
512
+ - **A completed, abandoned or fully checked no-status ephemeral is never stranded** — aide_cleanup removes it (completed re-checked) with or without a plan beside it; anything still proposed or approved is refused; a brief.aide never goes without its plan.
513
+ - **aide_scaffold never overwrites any existing file** — every type is a no-op on an existing target.
514
+ - **No build or fix starts on anything not approved** — building needs the plan (and its brief, if present) approved, and fixing needs the todo list approved, each checked through aide_frontmatter's read mode by the build/fix stage and the implementor.
515
+ - **Recorded state changes only through aide_frontmatter** — never a hand edit of alignment or status.
516
+ - **No spec below the root without a settled place in the tree** — the spec writer takes the folder from the approved tree or returns to the orchestrator.
517
+ - **No plan.aide without an intent spec beside it** — aide_scaffold refuses, aide_validate flags; a module's code never rides in another module's plan.
518
+ - **No playbook entry silently skipped** — every build step's report lists each Read entry as loaded or not loaded, and the orchestrator re-runs a step with an unloaded entry.
519
+ - **No shipped copy changes first** — brain seeded notes, global skills/agents and host files change only after the canonical source here and a CHANGELOG entry.
520
+ - **Version behind vs files outdated stay separate** — only `behind` compares against npm; `outdated` compares against the running server; a pin is moved only by aide_upgrade's targetVersion path, only after the version is installed, never backwards.
521
+ - **An agent-reported project root bounds file access only when it is absolute** — anything else is treated as no root (and the path resolver refuses it independently).
522
+ - **One observer per user per machine** — the running-observer record lives once at the app-data root; never per project.
523
+ - Data routes always require the observer token; only the page shell and allowlisted assets are token-free, and Host/Origin checks apply to every request (brief #67).
524
+ - styles/viewer is a byte copy of the handoff's viewer.css; local CSS lives only in styles/additions, scoped under `.av`.
525
+ - Panel state that must survive a tab switch lives above TabPanel.
526
+ - Never two waiting-on-you blocks on screen at once on the session page; the slim bar sits out of flow (absolute under the sticky .av-top) so toggling it never shifts layout.
527
+ - Never two waiting blocks on screen at once.
528
+ - The desktop project page never scrolls as a whole; only its regions scroll.
529
+ - Home's project order never reshuffles on load; it starts from the remembered order and re-sorts at most every 2s.
530
+ - Every .aide file and every frontmatter field/section is reachable from the tree.
531
+ - Path-confinement checks must treat a backslash as a separator on every platform; tests run on Linux CI, so a Windows-only pass is not a pass.
532
+ - The release-check harness judges the real observer by the port its record names, not 24680 (the real one may sit anywhere in the port list).
533
+ - A Claude Code session's aide MCP server keeps running the code it started with: after `npm i -g` of a new version, `aide_info` in that same session reports the new serverVersion (read from disk) while running old code. Judge new-version behavior from a fresh process or a new session.
534
+ - **A tool or hook change updates its `.aide/reference/` page in the same piece of work** — including the paused SessionEnd fix, which changes what the SessionEnd hook page and hooks index say.
535
+ - **Never rewrite git history or published records to change the license of past versions** — every version through 0.20.2 was released under MIT; that grant stands, and past versions are not relicensed; only future versions may change license.
536
+ - **The README tools generator never runs inside `npm run build`** — CI must test the committed README, not a freshly generated one.
537
+ - **buildReadme writes only between its markers** — README bytes outside `<!-- aide-tools:start -->` / `<!-- aide-tools:end -->` stay byte-identical, and a missing or doubled marker stops with an error.
538
+
539
+ ## Where this cycle stopped (CRITICAL READING)
540
+
541
+ 2026-11-28: The private legal task is parked in Todo. Private legal details: brain `projects/aidemd/legal/session-legal-record.md`.
542
+
543
+ 2026-11-27 (end of session): The four In Review tasks moved to Done with the user's yes; In Review and In Progress are empty. Decision (user, 2026-11-27): the npm account will be named `aidemd` (aidemd is a product owned by Lowmeadow LLC), not a Lowmeadow account. Order: the npm/GitHub account switch (account steps are the user's; agents guide and update repo files only after the user confirms). The npm decision is stashed in task move-aidemd-mcp-npm-package-to-lowmeadow-llc; its title still says 'Lowmeadow LLC account' — retitle with the user's OK.
544
+
545
+ 0.20.2 (observer markdown fixes: nested lists, unwrapped code blocks, whole checkbox text, nested indent) is released, installed globally and the observer runs it. The aidemd.dev site sync was skipped for 0.20.1 and 0.20.2 at the user's word; the earlier 0.20.0 site sync is still pending — run it once no session is working in the site's checkout (it will then take the latest). New backlog task observer-halts-a-session-on-its-own-conversation (p2).
546
+
547
+ 0.20.0 is released. The aidemd.dev site sync is NOT done: the user said another session is working in the site's front end, so do not start a session there until it is idle; then run the headless sync (aide_info expects 0.20.0, aide_upgrade every drifted package-owned category, never mcp or brain; commit `chore(aide): sync methodology to 0.20.0`, push, confirm the Pages deploy, report brainMigration if any). This repo's own hooks are still in the old form (untracked .claude/settings.json with `aidemd-mcp hook`; .claude/settings.local.json is tracked and not gitignored) — run /aide:upgrade here to move them. Next feature: the hosted observer (remote-observer-hosted-web-interface).
548
+
549
+ 0.18.0 is released and the site is synced. Next: (a) This repo's brain config took the 0.18.0 config section and declares `kanban: { source: folder, path: D:\Code\Me\my-brain\kanban }` (commit pushed 2026-11-26); aidemd.dev still needs `/aide:brain config` run in a session in its own folder. (b) observer-board-missing-when-agent-omits-brain-folder moved to Done on 2026-11-26. Next work: start observer-test-projects-get-unique-names-and-cleanup (p1) in a new session, since this session's aide server ran pre-0.18.0 code. (c) On 2026-11-26 the 7 test-made aidemd-mcp observer projects were deleted on the user's yes, the 3 stale aidemd-mcp sessions from 2026-11-25 were ended, and the observer was restarted on 0.18.0 at port 24681 (it had briefly come up on 24680; the user wants 24681). Four new tasks were logged (see Kanban); none started.
550
+
551
+ Standing approach for observer page UI changes: hand-driven targeted edits by the main agent, no pipeline, quick; update tests afterwards; CHANGELOG bullets under [Unreleased]; verify in the browser against the fixture observer (`npm run observer:fixtures -- --port 24799 --set sessions`, never port 24680).
552
+
553
+ ### What the next agent must do
554
+
555
+ 1. Optional, the user's call: require 2FA for the whole aidemd-mcp org (org Settings → Authentication security); both members already have it. The aidemd.dev sync for 0.20.5 is the user's to run (they said they will handle the frontend deploy).
556
+ 2. Task `rename-the-product-to-aidemd` (In Progress): code and docs done, QA passed, cleaned; committed as a8c38a4 (author aidemd-dev) and pushed, CI green; GitHub repo renamed aidemd-mcp/server → aidemd-mcp/aidemd on 2026-11-29 with the user's yes (stars kept, old URL 301-redirects, this clone's origin now https://github.com/aidemd-mcp/aidemd.git); NOT released. Release steps, each needing the user: (a) DONE: commit and push; (b) DONE: rename the GitHub repo aidemd-mcp/server → aidemd-mcp/aidemd in place (never create a repo named server afterwards); (c) npm: the first publish of @aidemd-mcp/aidemd likely needs the user (npm Trusted Publisher is configured per existing package), then add its Trusted Publisher for aidemd-mcp/aidemd + publish.yml; update @aidemd-mcp/server's Trusted Publisher to the renamed repo; npm has no separate create step: @aidemd-mcp/aidemd exists only after its first publish (still 404 on 2026-11-29); the user publishes 0.21.0 once by hand at the tag (`npm publish --access public`, logged in as aidemd), then adds its Trusted Publisher; then the publish workflow is re-run by workflow_dispatch for v0.21.0 to do the MCP Registry entry and GitHub Release. (d) release check, hook speed test, then node scripts/publish.mjs minor → 0.21.0 (npm + MCP Registry io.github.aidemd-mcp/aidemd); (e) run publish.yml by workflow_dispatch with tag v0.21.0 and former_version 0.20.6; (f) npm deprecate @aidemd-mcp/server naming @aidemd-mcp/aidemd; mark io.github.aidemd-mcp/server deleted in the registry; (g) this machine: npm i -g --force @aidemd-mcp/aidemd, /aide:upgrade in this repo, aidemd.dev and Showfold; (h) Glama re-sync, README Glama badge, aidemd.dev sync, awesome-list PR #21076 line. The remote observer is AIDEMD Cloud (decision #109; repo https://github.com/aidemd-mcp/aidemd-cloud, setup commit 67eb784 pushed; brain wiring left for the user's first /aide in that folder); its task remote-observer-hosted-web-interface is still on the aidemd-mcp board.
557
+ 3. GitHub account `aidemd-dev` created by the user 2026-11-28 (decision #106 update) and invited to the aidemd-mcp org as Member 2026-11-28 (sent from the user's browser; pending acceptance by aidemd-dev). Left for the user: accept the invite as aidemd-dev, add + verify npm@aidemd.dev on aidemd-dev, run `gh auth login` to add aidemd-dev to gh. Then: glama.json maintainers → aidemd-dev; aidemd-dev opens the punkpeye awesome-list PR. The `gh auth refresh -s admin:org` attempt was abandoned (the scope would grant admin over all 8 of the user's orgs). aidemd-mcp/aidemd.dev About and website are set. aidemd-mcp/aidemd.dev-v1 was deleted 2026-11-28 with the user's yes.
558
+ 4. The private legal task is PARKED (Todo); resume only when the user picks it up. Details: brain `projects/aidemd/legal/session-legal-record.md`.
559
+ 5. The settings.json idea is now task `aide-boot-validates-claude-settings-and-guides-repair` (aidemd-mcp, Backlog, p2): broken `.claude/settings.json` comes back from aide_info as its own finding with line/column; the main agent repairs it by hand only after the user confirms, then reruns the tool, which re-validates and adds AIDE's hooks on the user's yes; validation covers only JSONC parse + AIDE's own hook entries. Next work is the user's pick.
560
+ 6. The backlog task `observer-home-shows-a-kanban-board-that-fits-the-page` (p3).
561
+ 7. Open gap, not fixed yet: aide_info reports `bin/aide-tree` outdated on the aidemd.dev site, but aide_upgrade has no category that writes the `.aide/bin/aide-tree.mjs` launcher (only init/sync install it, via src/service/install/installAideTree). Old launchers still work.
562
+ 8. Open user decisions:
563
+ - Delete the leftover aide-view-* and tmp.* folders in the real app-data folder and the aide-observer-qa-* folders in %TEMP%?
564
+ - Add the "search for an existing shared helper before declaring a constant" lesson to the aide-architect agent?
565
+ - Type-check scripts/ with tsc?
566
+
567
+ ### What's already done and validated
568
+
569
+ - 2026-11-27 — 0.20.2 released: checkbox text wraps as one run and nested blocks line up with the step text; observer restarted on 0.20.2.
570
+ - 2026-11-27 — observer Details markdown: nested lists and non-wrapping code blocks fixed and verified in the fixture observer (b579721, released in 0.20.1; observer restarted on 0.20.1).
571
+ - 2026-11-26 — 0.19.0 released: tool and hook reference category; release check 30/30 with the new previous-release upgrade test; aidemd.dev synced (249106a) and deployed.
572
+ - 2026-11-26 — SessionEnd timeout test (scratchpad hooktest3, observer project hooktest3-* in ~/.aidemd): with `"timeout": 10` and a 3 s sleep, the archived linked session's presence reached `ended` and its ended mark was written; archiving honors the per-hook timeout.
573
+ - 2026-11-26 — archive hook test (scratchpad projects hooktest / hooktest2, observer projects hooktest-7135cc and hooktest2-1ecd0e in ~/.aidemd, test sessions archived): archiving fires SessionEnd; the linked case loses the race (see State summary).
574
+ - 2026-11-26, 0.18.0 released (commit 349cad3, tag v0.18.0): the observer finds each project's board from the brain config's `kanban` field. Publish CI green, npm shows 0.18.0, global install updated to 0.18.0. aidemd.dev synced via headless session (site commit 34bf3f5: brain-aide and changelog docs, versions.json, aide/brain command, aide-brain-author and aide-observer skills), deploy run green. Pre-release: release check 25/25, hook speed test passed.
575
+ - Board-location fix built and verified; retro at brain process/retro/2026-11-25-aidemd-kanban-field-observer-board.md; CLAUDE.md changelog rule now says to test Detect against correctly-migrated files of every kind, including ones omitting an optional field on purpose.
576
+ - 2026-11-25, 0.17.1 shipped the boot hooks fix (decision #98). The release-check harness gained check 4.boot (aide_info lists `hooks` when init deferred them) and asserts a fresh project's outdated has no `hooks`. `restructure-aidemd-dev-landing-page` moved to the aidemd-dev board (Backlog).
577
+ - 2026-11-25, 0.17.0 released. The profile-folder probe was confirmed by the agent itself: a script launched outside the desktop app via explorer.exe read a file the app had written to %USERPROFILE% (and saw no observer record under the real %LOCALAPPDATA%), so %USERPROFILE%\.aidemd is shared by desktop-app and terminal sessions; probe files deleted; the technique is recorded in the release check's NOTES.md. The stale page test "lifts phone touch targets…" was fixed (the two .av-resize ::before rules are the grip pill's length, added to the allow-list). The AppData fix was committed as 2459ee9. Full gate before release: tsc clean, vitest 6 812 passed, 4 skipped, 0 failed. Released 0.17.0 with the user's go-ahead: release commit cf4fa46, tag v0.17.0; Publish workflow green (tests, npm, MCP Registry, GitHub Release); npm serves 0.17.0. Global install updated to @aidemd-mcp/server@0.17.0. aidemd.dev synced headless (site commit 2eaa6b2: methodology-docs index + changelog, version-metadata, commands aide.md, agents aide-architect + aide-upgrader, skills aide + new aide-observer; pointer-stub/ide/readme matched; mcp/hooks/brain not applied; the site's drift summary lists the hooks category as missing for .claude/settings.json — left for the user to decide; brainMigration null). The site deploy failed once on a Google Fonts fetch in next/font (unrelated to the sync), re-run succeeded (run 45724429913). Board: moved to Done — aide-observer-skill-with-serve-and-record-settings, observer-phase-rail-blank-or-stale-when-reports-missing, aide-warns-when-another-live-session-is-in-project, observer-judges-session-liveness-from-hooks-and-process, aide-per-user-files-land-in-a-packaged-apps-appdata, phone-touch-target-style-test-fails-after-resize-grips, observer-file-drawer-renders-plan-markdown-wrong, observer-report-task-resumed-in-progress-at-boot; In Progress and In Review are empty.
578
+ - 2026-11-25, aidemd.dev took the 0.17.0 Claude Code hooks through a headless /aide run in its own checkout (site commit c33645e, deploy green). aidemd.dev now has its own kanban board, tag `aidemd-dev` (recorded in the site's CLAUDE.md, site commit e887ceb); task `aidemd-dev-hooks-observer-docs-and-seo-aeo` (p1, Backlog) covers a research pass on target queries (seed: 'open source agentic sdlc framework'), a hooks docs section, an observer page, and SEO/AEO.
579
+ - 2026-11-25, packaged-app AppData fix (decision #96, task `aide-per-user-files-land-in-a-packaged-apps-appdata`) built, QA'd and cleaned, uncommitted.
580
+ - Plans (user-approved; 7 plans, 8 steps). util: `resolveAppDataRoot` checks `AIDEMD_HOME` (absolute) first on every OS; Windows root `<homedir()>\.aidemd` (LOCALAPPDATA no longer read); runtimeNames OBSERVER_RECORD_FILE/OBSERVER_TOKEN_FILE; one-time mover `src/util/runtimePaths/moveLegacyRoot` (logs byte-verified before unlink, prefix merge or diverged-keep, presence/ended/archive moved, old observer.json and observer-token deleted — user's "Delete it too" — emptied folders removed, never runs while AIDEMD_HOME is set or off Windows, safe for concurrent starts). tools/observer: `aide_observer_start` runs the move first via `start/moveLegacyHistory`, never blocking or changing the reply, leftovers on one `aide: ` stderr line (user's choice). Test sweeps in event, observer, cli/hook, cli, src to AIDEMD_HOME.
581
+ - Main-agent edits: vitest.setup.ts + vitest.config.ts setupFiles (each test process gets a temp AIDEMD_HOME); scripts/seedObserver sets AIDEMD_HOME; CHANGELOG [Unreleased] Changed + Fixed + [migration] (Detect old %LOCALAPPDATA%\aidemd project folders; Migrate: first aide_observer_start moves them; Confirm once, as a batch).
582
+ - Hook speed: medians 152–155 ms quiet missed the 150 ms budget (run-to-run noise; resolver change adds nothing measurable); the user raised the budget to ≤175 ms quiet / ≤200 ms refreshing (paired median) until `make-the-claude-code-hook-start-faster` lands (decision #97); rerun passed (147/145/157 ms); recorded under brief #103.
583
+ - QA PASSED with notes (records not byte-compared when the new root already holds them, per #106; small append window on logs during the first post-upgrade start; start waits for the move). Full suite 6811 passed, 1 failed (pre-existing page styles test), 4 skipped; C:\Users\bestb\.aidemd never created by tests. All 7 plans recorded completed and removed via aide_cleanup.
584
+ - Release check harness updated (AIDEMD_HOME isolation, real new+legacy roots, 9.real reads legacy record, new Windows check 10.move) and run from the agent's shell: 24 PASS, 0 FAIL, 0 SKIP (headless included; the CLI is now signed in there). 10.move moved seeded history byte-identical into a fake home and deleted the old record/token; 9.real read the real record from the legacy root; real roots, global install and observer on 24680 untouched. Temp root C:\Users\bestb\AppData\Local\Temp\aide-release-check-2026-11-25T23-10-46-477Z.
585
+ - Pending: the user confirms from a standalone terminal that a probe file written from inside the desktop app (C:\Users\bestb\aidemd-msix-probe.txt) is visible there, i.e. the profile folder is not redirected.
586
+ - 2026-11-25, release check fully green from the user's terminal (PASS 23, FAIL 0, SKIP 0, headless included); harness 9.real hardened afterwards (uncommitted).
587
+ - Headless checks all PASS: 6h.preflight (claude -p works with LOCALAPPDATA overridden, pong in 9.4 s), 6h.run1 (/aide: aide-observer first, start 'Observer already running at http://127.0.0.1:24681/…', one aide_info boot call, presence linked; 20 tool calls), 7h.halt (HALT names claude:<fake id>, no boot, no end_session), 7h.approve (end_session wrote the mark; 2 start calls, last passed). Packed 0.16.1, 237.5 s. Kept temp root C:\Users\bestb\AppData\Local\Temp\aide-release-check-2026-11-25T22-03-02-798Z.
588
+ - Gap: that run's 9.real read no real observer record ('observer pid none') while 24680 was listening (pid 37692), so it passed without comparing the observer. Hardening (uncommitted): 9.real now FAILS when 24680 is listening but the record was not read, naming the path and the shell's LOCALAPPDATA; the baseline line prints the record path and a warning. From the agent's shell the record reads fine (pid 37692): 19 PASS, 4 SKIP (headless, CLI not signed in there). NOTES.md records the hardening and that headless checks need a standalone terminal after `claude auth login`.
589
+ - 2026-11-25, serverInfo version bug fixed (uncommitted):
590
+ - Fixed through the pipeline with the user's yes. Plan (src/plan.aide, 2 steps, user-approved): (1) the MCP handshake reports `{ name: aidePackage.name, version: readPackageVersion() }` with a pinning test in src/startServer/index.test.ts that parses package.json itself (reverting to "0.2.0" fails it); (2) aide_info's private duplicate version reader removed — it now uses the shared `@/util/readPackageVersion` (one version source for handshake, aide_info, observer, view, start tool).
591
+ - QA PASSED (no todo, no retro); full gate: tsc clean, vitest 6 755 passed, 1 failed (pre-existing page styles test, backlog task `phone-touch-target-style-test-fails-after-resize-grips`), 4 skipped. Plan cleaned via aide-maintainer. CHANGELOG [Unreleased] Fixed bullet added.
592
+ - `/release-check` re-run: PASS 19, FAIL 0, SKIP 4 (headless claude -p checks; the CLI is not signed in from the agent's shell); serverInfo now 0.16.1; real setup untouched; temp root C:\Users\bestb\AppData\Local\Temp\aide-release-check-2026-11-25T21-41-54-954Z.
593
+ - Uncommitted since 32d92f0: the release-check skill, package.json exclusion, CLAUDE.md note, this fix, CHANGELOG, session.aide.
594
+ - 2026-11-25, release check added (after commit 32d92f0; all uncommitted):
595
+ - The user asked for a repeatable pre-release test. With the user's choice it lives in `.claude/skills/release-check/` (SKILL.md by the main agent; run.mjs + NOTES.md by a general-purpose agent). It is not in the install registry; `package.json` files gains `!.claude/skills/release-check` (verified: npm pack --dry-run lists none of it); CLAUDE.md's publishing section now says to run `/release-check` before publishing.
596
+ - The harness packs the build, installs the .tgz into a temp npm prefix, isolates LOCALAPPDATA/XDG_STATE_HOME and npm_config_prefix for every test process, wires a temp brain vault, and checks init, settings merge, malformed settings, the hook, the observer over MCP stdio (port walk to 24681, link, HALT on a fake open session, end-session, page/API), headless `claude -p` sessions, and that the real setup is untouched.
597
+ - First run (packed 0.16.1): 18 PASS, 1 FAIL, 4 SKIP. FAIL = product defect: `src/startServer/index.ts` hard-codes the MCP serverInfo version as "0.2.0" (aide_info reports the real version); not fixed yet. SKIP = the headless `claude -p` checks: the Claude CLI was not signed in from the subagent's shell (`loggedIn: false`, "this login reached its time limit"), so they must be run from the user's own signed-in terminal (`node .claude/skills/release-check/run.mjs --keep`).
598
+ - Real global install, real observer on 24680 (pid 37692) and real app data verified unchanged. Kept temp root: C:\Users\bestb\AppData\Local\Temp\aide-release-check-2026-11-25T20-43-42-881Z.
599
+ - 2026-11-25, observer pass closed:
600
+ - Hook speed item closed: the user approved restating brief #103 as a paired median (overhead over bare node ≤ 150 ms quiet / ≤ 180 ms refreshing, every run < 1 000 ms, p95 reported not guaranteed, noisy machine = inconclusive) and removing undici from the hook path (node:http via createRequire in touchPresence/pingObserver). Two clean runs on Windows/Node 22.22: quiet medians 140–145 ms, refreshing 152–155 ms. src/cli/hook re-QA PASSED.
601
+ - Full gate: tsc clean; vitest 6 753 passed, 1 failed (pre-existing page styles test, now backlog task `phone-touch-target-style-test-fails-after-resize-grips`), 4 skipped.
602
+ - Retro promoted to the brain at process/retro/2026-11-25-aidemd-observer-mandatory-one-session.md.
603
+ - aide-maintainer cleaned all 13 modules; src/util's todo recorded abandoned with the user's OK (its item is tracked by `util-scan-duplicates-checkbox-counter-and-imports-tools`). No plan.aide or todo.aide remains; src/service/observer/brief.aide (approved, #1–#104 with fix-loop amendments) is kept on purpose.
604
+ - Board: with the user's yes the four tasks moved In Progress → In Review, each with a stash. New backlog tasks `make-the-claude-code-hook-start-faster` (p3, change) and `phone-touch-target-style-test-fails-after-resize-grips` (p2, bug).
605
+ - Committed on main (not pushed, not released).
606
+
607
+ - 2026-11-25, observer pass Stage 6 QA + autonomous fix loop (orchestrator approved each todo and each amended plan), QA run on all 13 modules:
608
+ - PASSED first time: src/service/install, src/tools/upgrade, src/service/observer/status, src/observer, src/types.
609
+ - src/cli/init: malformed settings now `[skipped-malformed] .claude/settings.json — not valid JSON — left unchanged` plus a follow-up line naming /aide:upgrade (plan step 2). Re-QA PASSED.
610
+ - src/service/observer/event: test-gap fixed; plan step 8: presence rewritten and observer pinged only when state, link or transcript change or the record is 30 s old; ping via node:http agent:false; TouchOutcome.pinged. Re-QA PASSED.
611
+ - src/observer/page (plan steps 6–9): skipped cell visible with class skip and `Skipped · <reason>`; no 52px strip when the rail is hidden; rail footer hidden on a phone; visual re-check in qa-artifacts/s9-*. Re-QA PASSED.
612
+ - src: stale startServer tests replaced; HALT/BLOCKED pinned through the server. Re-QA PASSED.
613
+ - src/cli + view (plan step 2): `Port <requested> was not used; the observer is on port <actual>.`; exit 1 only when no port binds; --help describes the list; integration test on held ports. Re-QA PASSED.
614
+ - src/tools/observer (plan step 5): `not ended (<detail>)` via formatReply. Re-QA PASSED.
615
+ - Brief amendments (dated, fix loop) under #72, #97, #98, #99, #103, #104.
616
+ - Still open: src/cli/hook — the opt-in speed test (step 4) is built, but its budget (p95 overhead ≤ 200 ms over bare node for quiet calls) passed one run and missed another (quiet calls ~190–225 ms; the bare floor swung 104–136 ms); a profile shows undici loading on the hook path though nothing calls fetch. Sent back to the architect (second attempt on this item); if the cost cannot be cut and the budget must loosen, that goes to the user.
617
+ - Out of scope, left: src/util/todo.aide's one item (util/scan imports from tools/frontmatter; already tracked by backlog task `util-scan-duplicates-checkbox-counter-and-imports-tools`); the page styles test "lifts phone touch targets only under .av.phone" fails at HEAD c5032a2 (pre-existing; needs its own task).
618
+ - 2026-11-25 prose (main agent) since the previous update: aide-observer SKILL.md handles `not ended`; init/upgrade tool descriptions list the hooks category; init --help mentions hooks; CLAUDE.md publish step runs the hook speed test after build; aide-architect agent rule "a changed contract names every caller"; CHANGELOG bullets for the view port note, not-ended reply, presence refresh and architect rule; [migration] Confirm lines fixed to the bare forms.
619
+
620
+ - 2026-11-25 prose (main agent, uncommitted), made while Stage 6 QA runs (four aide-qa agents in parallel: util/event/types; status/observer HTTP/page; tools/observer/src/cli/cli-hook; install/cli-init/upgrade):
621
+ - `.claude/commands/aide.md` is now a router (Skill aide-observer, then Skill aide; stop if aide-observer stops).
622
+ - `.claude/skills/aide/SKILL.md` lost boot Step 6, the "Reporting to the observer" section and the observer sentences in Board tracking Start ("Only after Step 5"; intro names aide-observer).
623
+ - `.claude/skills/aide-observer/SKILL.md` now says to pass a `claude:<id>` HALT line's id without the prefix.
624
+ - `.aide/docs/index.md` lists seven skills with an aide-observer row.
625
+ - `.claude/agents/aide/aide-upgrader.md` gains its one named hand edit (delete a single `Observer: off` line from the instructions file, no other byte).
626
+ - `CHANGELOG.md` [Unreleased] gains Added (one open session + HALT, end-session tool, hook liveness, hooks category, pipelines, aide-observer skill, [migration] for the hooks category: Detect missing AIDE hook entries in .claude/settings.json, Migrate aide_upgrade category hooks, Confirm once as a batch), Changed (mandatory observer + port list + BLOCKED, liveness rule, session tag, /aide router, page words), Removed (`Observer: off` + [migration]: Detect the line, Migrate the upgrader deletes it, Confirm per file); the earlier `picked` Fixed bullet now points at the aide-observer skill.
627
+ - 2026-11-25, observer pass Stage 5 build complete (all 13 plans, 39 of 39 steps), built and checked off, one fresh implementor per step (page step 4 re-run once because the first implementor skipped its playbook entries):
628
+ - src/util (3/3): presence and ended-mark paths; SESSION_QUIET_LIMIT_MS = 15 min; sessionIdleLimit deleted.
629
+ - src/service/observer/event (7/7): schema v2 with pipeline kinds; protocol ports 24680–24689 + presenceRoute + sessionTagLabel; record port; presence, ended-mark and ping records; pure judgeLiveness + readLiveness; read side, archive, restore, delete with liveness, plus shared/attachLiveness; record refuses after the end and names the session; touchPresence; endSession. 408 tests.
630
+ - src/types (2/2).
631
+ - src/service/observer/status (3/3): findCurrentPipeline, findOpenPhase; liveness in, buildRails out, buildRail deleted; history labels for the new kinds. 269 tests.
632
+ - src/observer (4/4): port walk via listPorts; the record carries the port; a replacement reuses the old port; liveness read from disk for listings and pushes via shared/readHeldLiveness; status gets liveness + archived events; POST /api/presence route; fixtures with presence, ended marks and pipelines.
633
+ - src/observer/page (5/5): describeLiveness words; pipeline rail with skipped cells, footer, outside state, hidden rail for ended; pipeline on the running bar, now card and Home; history rows for pipeline kinds; visual check with puppeteer screenshots in qa-artifacts/.
634
+ - src/tools/observer (4/4): event replies end with `[observer-session <id>]` and `refused: session ended`; walkPorts + BLOCKED; HALT check via awaitOwnLink + findOpenSessions; end-session tool.
635
+ - src/cli/hook (3/3); measured on Windows.
636
+ - src/cli (1/1): lazy `hook` dispatch, exit 0.
637
+ - src/service/install (3/3): shared/planHooksMerge with jsonc-parser@3.3.1; installHooks `hooks` step; aide-observer as the 7th skill.
638
+ - src/cli/init (1/1).
639
+ - src/tools/upgrade (1/1): checkHooksConfig; `hooks` category.
640
+ - src (2/2): aide_observer_end_session registered; `hooks` in the init/upgrade schemas.
641
+ - Main agent prose: rewrote the aide_observer_start and aide_observer_event descriptions and wrote aide_observer_end_session's description in src/startServer/index.ts; aide-observer SKILL.md says to drop the `claude:` prefix when ending (end-session takes the bare Claude id).
642
+ - Implementor deviations to check at QA:
643
+ - status buildRails/judgeStage take no projectRoot.
644
+ - isOutside takes the session's running entry.
645
+ - A session's own commit events join pipelineEvents.
646
+ - A re-run skipped stage reads done.
647
+ - event added shared/attachLiveness and readLiveness helpers pickNewestPresence/judgeEntry.
648
+ - mergePresence compares at with Date.parse.
649
+ - touchPresence still pings when the ended-mark write fails.
650
+ - Known issues for QA / the fix loop (observer pass build, 2026-11-25):
651
+ 1. page: the skipped cell's `Skipped · <reason>` text is hidden by styles/additions/index.css:93 (`.p-meta{display:none}` for todo cells) — skipped looks like pending.
652
+ 2. page: ~52px empty bottom strip when the rail is hidden (styles/additions `.av-body` padding-bottom 52px).
653
+ 3. page: at 375px the `Pipeline <id>` footer label covers the rail.
654
+ 4. page: Home project rows cramped at 375px (no baseline; may predate).
655
+ 5. page styles test "lifts phone touch targets only under .av.phone" fails (finds `.av-resize.x/.y::before` 44px rules; may predate this pass).
656
+ 6. src/cli/view integration test "view with a busy port exits 1…" is stale — the observer now walks the port list.
657
+ 7. src/startServer test `aide_observer_start registration > maps not-started` is stale — the reply is now BLOCKED.
658
+ 8. Hook timing on Windows: p95 316–342 ms with an observer running (budget 300 ms; ~70 ms is the fetch ping), 253–269 ms without; max 350 ms vs the 1 000 ms deadline.
659
+ 9. The end-session tool replies `not ended (<reason>)` on a disk failure — not in brief #97.
660
+ 10. The implementor deviations listed above.
661
+ - 2026-11-25: `.claude/skills/aide-observer/SKILL.md` written by the main agent (uncommitted).
662
+ - Feature `aide-init-brain-step-returns-full-template-bytes-in-the-meta` (Done): aide_init brain step carries only `brainSummary` (under 4 KB on every status, tested); aide_upgrade brain category inserts missing sections tool-side (byte-identical only for the template's mcpvault launcher, else names sections to adapt), previews one change and applies it with a byte-exact SHA-256 `beforeHash`; aide_brain returns any contract section on every well-formed status with `found` and `purpose`; parseBrainAide CRLF fix (stray \r in quoted last frontmatter line). Full gate green (tsc 0, 2155 tests, build). QA passed all 7 modules; upgrade fix loop cleared 4 low-severity playbook items. Ephemerals cleaned via aide_cleanup. Retro at process/retro/2026-10-10-aidemd-content-free-brain-responses.md.
663
+ - Prose rewritten to match: /aide:brain config, /aide:upgrade, brain-aide.md, the aide_init / aide_upgrade / aide_brain tool descriptions.
664
+ - Releases: v0.10.2 (feature + kanban project-tag fix); v0.10.3 (/aide boot stops and suggests the upgrade before Step 4). v0.10.1 is a git tag on a broken commit that never published.
665
+ - Kanban skill records the project tag once in the instructions file; this repo's CLAUDE.md declares `Kanban project tag: aidemd-mcp`; the user's global kanban skill copy synced.
666
+ - CLAUDE.md publishing rules: check `git status` before publishing; after every publish, `npm i -g` then run /aide in a session in the aidemd.dev folder and push.
667
+ - aidemd.dev synced to 0.10.3 from npm and deployed (site commit 6deda6a); its `aide` entry switched to the global launcher; its brain.aide repaired.
668
+ - This repo's brain.aide stale sections updated (committed, pushed).
669
+ - Board: `rename-cards-to-tasks-in-kanban-prose` and `add-an-aide-cleanup-mcp-tool-that-deletes-pipeline` moved to Done; `brain-authoring-skill-create-a-brain-aide-for-any-backend` created (Backlog, P2).
670
+ - v0.10.4 released 2026-10-11 (commits 6f1dcc2, b406037, 8e1a8fb, 65c2bca; release 6085ad9); global install updated to 0.10.4.
671
+ - aidemd.dev synced to 0.10.4 from npm and deployed (site commit 160ad91), run headless: `claude -p` from the site folder with only aide_info, aide_upgrade, read and git tools allowed.
672
+ - Feature `versions-manifest-release-hygiene` (Done): shallow-clone guard, full-history CI checkouts, cross-platform clean build, stale .aide/versions.json removed/ignored/excluded from tarball. Gate green, QA passed (no todo.aide), plan.aide cleaned via aide_cleanup, committed as 260c82e, released in v0.11.0.
673
+ - Feature `brain-authoring-skill-create-a-brain-aide-for-any-backend`: built (20 steps across 6 plans), gate green (tsc 0, 2336 tests, build), QA passed with notes, ephemerals cleaned via aide_cleanup, committed 6d85560, released in v0.11.0, task Done.
674
+ - v0.11.0 released 2026-10-11 (566a5a5); global install updated to 0.11.0; aidemd.dev synced (d956b97) and deployed.
675
+ - v0.11.1 released 2026-10-11 (fix 08807f9): aide_cleanup no-plan rule; global install updated to 0.11.1; aidemd.dev synced (04232be) and deployed.
676
+ - Board cleanup 2026-10-25: 5 released/closed tasks → Done; 2 stale tasks dropped; the current task → In Progress.
677
+ - v0.12.0 released 2026-10-25 (2421374 feature, de56e49 release); global install 0.12.0; the published manifest has the changelog + upgrader.
678
+ - Hand bootstrap (logged): aide_frontmatter wasn't in the 0.11.1 server, so plan/brief/todo statuses for this release were set to approved by hand, once, with the user's approval each time.
679
+ - Fix loop (2026-10-25): QA found 9 in-scope items, all fixed: the frontmatter reader's raw-value echo; cli/init test isolation; cleanup re-checks a completed brief's boxes; cleanup's brief-without-plan wording; discover spec wording; the TreePanel status tag and badge test; guard timeouts; discover's shallow mode reads only a bounded head. Re-QA passed on every module.
680
+ - Root cause of the stray .aide/versions.json `{}`: the cli/init integration tests ran a real init in this repo (a mocked process.exit fell through, and the module's import-time IIFE ran on import). init is now an exported runInitCli() called by the dispatcher, and no test writes into the repo.
681
+ - Prose sweep: aligner, QA, maintainer, implementor, architect, strategist and spec writer; the new aide-upgrader agent; build, fix, align and upgrade commands; the aide and aide-handoff skills; the cascading-alignment, aide-spec, aide-template, plan/todo/brief/session-aide and index docs; README; the tool descriptions in src/index.ts; init --help; the CleanupRefusal JSDoc. src/retiredVocabulary.test.ts is green.
682
+ - CHANGELOG.md written (Keep a Changelog, every tag back to v0.3.1, 0.12.0 with two [migration] entries). This repo's CLAUDE.md has a ## Changelog section requiring an [Unreleased] bullet per user-visible change and a [migration] entry (Detect/Migrate/Confirm) per format change.
683
+ - Structure-gate prose written; guard tests + install/cli-init/upgrade suites green (1353 tests, 2026-10-25); approved by the user and committed on main 2026-10-25, unreleased; task moved to Done.
684
+ - v0.12.0 close-out (2026-10-25): 13 plans, 1 brief, 6 todos completed; retro at process/retro/2026-10-25-aidemd-status-model-and-session-record.md; 12 modules cleaned through aide_cleanup.
685
+ - Validate close-out (2026-10-25): 3 items → Backlog p2 tasks (slugs in ## Kanban); todo abandoned with the user's OK; src/tools/validate cleaned.
686
+ - Board (2026-10-25): the session task and the scaffold P1 bug moved to Done by the user.
687
+ - aide-maintainer now shows worked calls with `path` (2026-10-25).
688
+ - Root-intent scaffold fix (2026-10-25): built from 2 plans, QA passed with no todo, plans cleaned, committed c84d27c.
689
+ - v0.12.1 released 2026-10-25 (release 4352788, tag v0.12.1; Publish green; npm 0.12.1); global install 0.12.1.
690
+ - aidemd.dev synced to 0.12.1 (site commit 835109a, brainMigration null), 2026-10-26; deploy pending the Ubuntu 26.04 fix.
691
+ - Root-intent task moved to Done by the user, 2026-10-26.
692
+ - aidemd.dev deploy fixed (site 5000bd8, ubuntu-24.04), green 2026-10-26.
693
+ - Scaffold plan-refusal built 2026-10-26 (95 scaffold tests, 2917 full suite, tsc clean).
694
+ - Plan-requires-spec built 2026-10-26 (5 plans, QA passed no todo, plans cleaned, commit dc41576; 2988 tests).
695
+ - v0.13.0 released 2026-10-26 (release fecac4b, tag v0.13.0; Publish green; npm 0.13.0); global install 0.13.0; aidemd.dev synced (a8365d9) and deployed green.
696
+ - v0.13.1 released 2026-10-26 (release 7b5740f, tag v0.13.1; Publish green; npm 0.13.1); global install 0.13.1; aidemd.dev synced (25c46bd), deploy green; changelog heading fixed in c6af03e.
697
+ - brain.md Step 5b skips an already-updated brain file (12a5c3a, unreleased), 2026-10-26.
698
+ - Pinned-behind task built, QA passed, cleaned (2026-10-26); retro promoted.
699
+ - v0.14.0 released 2026-10-26 (release b62c696, tag v0.14.0; Publish + CI green; npm 0.14.0); global install 0.14.0; aidemd.dev synced (0c3fa7d), deploy green.
700
+ - /aide:brain config here: kanban-index taken (42e2494), 2026-10-26; stray home node_modules deleted.
701
+ - aidemd.dev brain config: kanban-index taken (site 3b19407), deploy green, 2026-10-26.
702
+ - v0.15.0 released 2026-10-28 (release 414776f, tag v0.15.0; first publish run failed only at the npm wait step, rerun green: npm, MCP Registry, GitHub Release); global install 0.15.0; aidemd.dev synced 080020e, deploy green.
703
+ - Observer build (2026-11-22): util plan complete (buildTreeData + countCheckboxes copied, runtimePaths resolve/resolveEventLog/create, isProcessRunning; whole-repo tsc clean, 179 files / 3301 tests green); tools/frontmatter and tools/cleanup switched to util countCheckboxes, findOpenItems deleted. Uncommitted.
704
+ - Observer feature (2026-11-22): built, QA passed + fix round + re-QA passed; quiet-tree gate 265 files / 3961 tests; retro promoted; ephemerals cleaned except the plan-less feature brief and the src/types todo. Uncommitted.
705
+ - SKIP_DIRS moved out of src/types into src/util/skipDirs (2026-11-23; QA todo item, user: 'Move it now'); importers scan, classify, holdsCode, inspect/walk switched; full suite 266 files / 3962 tests green; ephemerals cleaned in src/types, src/util, src/util/classify, src/tools/inspect. Retro appended to the brain note.
706
+ - One observer per machine (2026-11-23; #75–#77): built, QA'd, 25 fixes, re-QA passed. Committed in 2165b40 (2026-11-24).
707
+ - Page redesign from the new handoff (2026-11-24; #80–#81): built, QA'd incl. Playwright, 28 fixes, re-QA + Playwright re-pass passed, 5791 tests. Committed in 2165b40 (2026-11-24); task moved to In Review.
708
+ - Observer page UI rework (#83) committed as 7da327b (2026-11-24).
709
+ - v0.16.0 (tag on 5bc09a7) failed Publish CI on Linux (`resolveConfinedPath` test "refuses ..\x" returned `missing`; a backslash is not a separator on Linux) and never reached npm. Fixed by also checking the path with backslashes read as separators (src/observer/routes/getFile/resolveConfinedPath/index.ts); CHANGELOG 0.16.1 Fixed entry says 0.16.0 never reached npm.
710
+ - v0.16.1 released 2026-11-24 (commit 29e4421, tag v0.16.1; Publish CI green; npm 0.16.1); global install 0.16.1; aidemd.dev synced headless (methodology-docs (changelog), version-metadata, skills/aide; site commit fb1c3aa), deploy.yml run green, brainMigration null.
711
+ - Observer page designer package (2026-11-24): design/observer-page/v3/ (README designer prompt, 19 screenshots, 19 self-contained HTML snapshots, additions.css, page.css, page.aide) committed and pushed as 12dfe66; zip design/observer-page/observer-page-v3.zip local, uncommitted. Global install re-confirmed at 0.16.1; fixture observer on port 24799 stopped.
712
+ - Task `pipeline-viewer-with-event-log-hooks-and-aide-event-tool` moved to Done (user, 2026-11-25).
713
+ - Observer drawer markdown fix, Details and bottom-drawer resize handles, full-width bottom drawer and av-drawer-bottom rename committed as c5032a2 (2026-11-25, not pushed); brain.aide config section and session.aide in the same commit.
714
+ - Report-task-resumed prose fix committed as 5afd567 (2026-11-25, not pushed); its task is In Review.
715
+ - 2026-11-29: release check on the unpacked rename build PASS 30/30, no skips (headless /aide included; group 11 upgraded a 0.20.5 project and rewrote its hooks). Local switch test (scratchpad script; temp prefix and AIDEMD_HOME; real @aidemd-mcp/server 0.20.5 from npm → local 0.20.6 stand-in built from the new pack with name/mcpName/version swapped → headless /aide:upgrade told to install the new package from the local pack): 14/15 PASS — aidemd-mcp then starts the new package, the old package stays installed, exactly one AIDE hook per event on the new package, the user's own hook kept, the rewritten hook runs, and uninstall-old-then-reinstall-new restores the command. FAIL: the 'old package still installed' follow-up never surfaced.
716
+ - 2026-11-29: switch test rerun with a strict override (the local pack replaces only the package name; no flags added) — the upgrader route works as designed: in the hooks category the plain `npm i -g @aidemd-mcp/aidemd` install fails with EEXIST (the old package holds the command) and the hooks are left alone; the aide-upgrader then matches the [migration] entry, runs `npm i -g --force`, applies the hooks category (5 hooks on the new package, none on the old, the user's own hook kept), and hands back the follow-up 'the old package is still installed; ask whether any other project uses it; only then uninstall it and reinstall the new one'. The first run's miss was caused by the test override letting the agent add --force in the hooks category. All checks pass (the one FAIL line was the checker reading only the FOLLOW-UPS: line while the agent listed follow-ups below it). Evidence: C:\Users\bestb\AppData\Local\Temp\aide-switch-test-2026-11-29T07-20-29-488Z.
717
+
718
+ ### What's left after the current cycle
719
+
720
+ - aide_observer_event rejects numeric `total` on plan_step_checked when sent through the MCP client (arrives as a string: 'total: Expected number, received string'); step also capped at 32 chars — worth a small task.
721
+ - From the previous cycle: Offer the backlog follow-ups (the empty frontmatter block reading as unparsable, validate flagging brief/session/brain.aide for missing description, cli/init --help omitting session.aide and the --ide line pointing at a nonexistent todo.aide).
722
+ - From the previous cycle: /aide:align on the unreviewed specs (src/service/install, src/tools/scaffold, src/tools/cleanup, src/tools/frontmatter, src/tools/discover, src/service/brainContract, src/service/install/provisionBrain, src/tools/info, src/tools/upgrade, src/types, src/util/classify, src/tools/validate).
723
+ - From the previous cycle: Decide with the user whether a [migration] entry should offer specs for host plans in spec-less folders (open question).
724
+ - From the previous cycle: Start `track-playbook-conformance-per-module` in a fresh session.
725
+ - The upgrade spec could name the one-section adapt read explicitly (QA spec-gap note).
726
+ - The server reports its version as "0.2.0" in MCP serverInfo — a stale hard-coded label.
727
+ - aidemd.dev's `docs:verify` expects 33 files, counts 42 — stale count in the site's script.
728
+ - Retro rules for the architect agent (always include `foundations/conventions` in step Read lists; single-source pinned strings) — ship with a future release if the user wants them.
729
+ - src/tools/brain/.aide body (Context/Strategy/examples) is stale vs the revised frontmatter and needs a strategist pass.
730
+ - A draft path equal to the project root yields reason "cannot read (EISDIR)" with an empty path.
731
+ - The draft unreadable-file wording differs from the host check's labels (allowed by the brief, but inconsistent).
732
+ - The launcher-region logic is duplicated between readTemplateLauncher and upgrade's locateFrontmatter.
733
+ - The marker line format is spelled out in SKILL.md (drift risk if the format changes).
734
+ - aide_scaffold type=plan writes a `description:` field that plan-aide.md forbids (and the todo template has had a similar mismatch); fix the templates or the doc.
735
+ - Brain note coding-playbook/study-playbook uses ### headings where the template uses ## (cosmetic; reseed or leave).
736
+ - Backlog candidate: running /aide:upgrade without a target when the pin is ahead of the running server still prescribes pinning back to the running version (existing behavior).
737
+ - Backlog candidate: a prerelease npm `latest` dist-tag would yield versionsBehind 0 in aide_info (cosmetic).
738
+ - Maintainers still sometimes call aide_cleanup without `path` first (seen again 2026-10-26).
739
+ - aidemd.dev has no .aide/session.aide (aide_init reports would-create); offer `aide_scaffold type=session` there next time the site is touched.
740
+ - Follow-ups found in e2e (pre-existing or out of scope): the aide_init brain step hands a prescription with a null vault slot and agents fill it with a guessed path (seen: the user's real brain path from global CLAUDE.md) — should say 'do not merge; run /aide:brain config'; with both `aide` and `aidemd-mcp` npx entries only `aide` is switched and the duplicate is never reported; `init --mode local` is silently ignored; /aide:upgrade on a fresh init project always creates .zed/settings.json (init and upgrade disagree about Zed); a malformed .mcp.json leaves brain.aide written by init; the published package installs a stray `server` bin.
741
+ - aide_upgrade has no category that writes the `.aide/bin/aide-tree.mjs` launcher, though aide_info reports `bin/aide-tree` outdated (seen on aidemd.dev, 2026-11-24); only init/sync install it (src/service/install/installAideTree). Not fixed yet.
742
+ - src/service/install/scaffoldCommands/.aide has a rule that only a new phase adds an installed command (commands like /aide:handoff, /aide:brain, /aide:upgrade aren't phases) — spec-only fix, deferred by the user as out of scope for the viewer feature.
743
+ - Push c5032a2 and 5afd567 and release (they ship with the next release).
744
+ - Commit the aide-observer SKILL.md HALT change + CHANGELOG bullet (with the user's OK).
745
+ - Optionally delete the test observer projects hooktest-7135cc and hooktest2-1ecd0e from ~/.aidemd (user's call).
746
+ - Rename the five `src/service/install/install*` helper folders — now part of task `playbook-refactor-pass-for-pre-aide-code`.
747
+ - The user raised the import-side convention: a leaf like `install/reference` exporting `reference` reads bare at the import site; either alias on import (`installReference`) — already in the playbook's Naming entry for default exports — or a namespace/barrel import reading `install.reference` (not in the playbook). Open: whether to add the namespace-import option to the playbook.
748
+ - The user asked whether this project needs a playbook refactor pass: yes; filed as task `playbook-refactor-pass-for-pre-aide-code` (p2, Backlog), not started (user: 'make it a task dont do it now').
749
+ - The stars and adoption research is now task `research-how-to-grow-github-stars-and-adoption-for-aidemd` (Backlog, p2), created with the user's yes 2026-11-28; not to start now.
750
+ - The GitHub account `aidemd` (empty, created 2025-07-24) — whether it is the user's is unknown; asked the user.
751
+
752
+ session.aide is rewritten, never deleted (decision 18).
753
+
754
+ ## Process discipline (permanent)
755
+
756
+ - One implementor per numbered plan step.
757
+ - Prose never goes through the pipeline — agent instructions, methodology docs, README and wording-only text changes are edited directly by the main agent; only behavior-changing code is pipelined (user, 2026-10-09).
758
+ - Pause for user approval before the build.
759
+ - Every /aide session checks the board at boot and keeps the feature's tasks and `## Kanban` links current.
760
+ - Record the work in session.aide in full (decision 23); stash into tasks alongside.
761
+ - Cleanup of plan/todo/brief goes through aide_cleanup via aide-maintainer.
762
+ - Release process (user, 2026-10-11), done by the agent every time it publishes: check `git status` (publish.mjs commits everything staged) → publish and confirm the Publish workflow and npm version → `npm i -g @aidemd-mcp/server@<version>` → run a headless `claude -p` session from inside the aidemd.dev checkout that applies the drifted package-owned upgrade categories through aide_upgrade (never mcp or brain), commits `chore(aide): sync methodology to <version>` and pushes to main (the push deploys via GitHub Pages) → confirm the deploy → update session.aide. Never hand-edit the site's files from this repo's session; the headless session in the site folder does the work through aide's own tools. If it reports brainMigration, tell the user (/aide:brain config needs their consent).
763
+ - Keep session.aide up to date as you work (decision 22).
764
+ - After every publish, update the global install (`npm i -g @aidemd-mcp/server@<version>`) and run the aidemd.dev sync headless, unprompted. The one-time skip for 0.15.0, so the user could test the boot's upgrade prompt, ended 2026-10-28.
765
+ - `rtk` crashes through the Bash tool on this machine (ENOENT on a drive-mangled path to its commands.json); implementors run npx tsc / npx vitest directly.
766
+ - **aidemd.dev sync:** any unarchived session in the site's checkout counts as active even when idle; never sync under it without asking the user (2026-11-28).
767
+ - **Never start an `/aide` session (user rule, 2026-11-28).** The user opens every `/aide` session; 'let's start a new session' means they will. Agents may start other sessions. Shipped as a Rule in the canonical aide skill (.claude/skills/aide/SKILL.md) with a CHANGELOG [Unreleased] Changed bullet; reaches host projects with the next release + /aide:upgrade. On 2026-11-28 the agent wrongly started one (local_cc54111a, 'aide-next'); it was stopped and left idle for the user to archive.
768
+
769
+ ## Open questions
770
+
771
+ - Should a [migration] entry also detect a project root holding an `intent.aide/` folder with no `.aide/` (the old rename bug's footprint) and offer to rename it back? No AIDE tool renames a folder today, so the CHANGELOG currently tells users to rename it by hand.
772
+ - Should a [migration] entry tell /aide:upgrade to find host plan.aide files with no intent spec beside them and offer to write the spec (per file, with the user)?
773
+ - Delete the 7 stray test observer folders in %USERPROFILE%\.aidemd? (awaiting user)
774
+ - aide_upgrade's ide category flags valid Zed JSONC settings (trailing commas) as malformed — fix the parser to accept JSONC.