@aitne-sh/aitne 0.1.8 → 0.1.10

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 (308) hide show
  1. package/README.md +251 -164
  2. package/agent-assets/agent-profiles/_safety.md +3 -3
  3. package/agent-assets/agent-profiles/browser-task.md +108 -0
  4. package/agent-assets/agent-profiles/conversational.md +3 -3
  5. package/agent-assets/agent-profiles/profile-importer.md +2 -2
  6. package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
  7. package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
  8. package/agent-assets/agents/evening-review/agent.md +53 -0
  9. package/agent-assets/agents/hourly-check/agent.md +62 -0
  10. package/agent-assets/agents/monthly-review/agent.md +55 -0
  11. package/agent-assets/agents/morning-routine/agent.md +78 -0
  12. package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
  13. package/agent-assets/agents/skill-curation/agent.md +52 -0
  14. package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
  15. package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
  16. package/agent-assets/agents/weekly-review/agent.md +51 -0
  17. package/agent-assets/docs/concepts/agent-day.md +13 -11
  18. package/agent-assets/docs/concepts/auth-health.md +47 -10
  19. package/agent-assets/docs/concepts/backends-and-tiers.md +66 -31
  20. package/agent-assets/docs/concepts/costs-and-quotas.md +51 -15
  21. package/agent-assets/docs/concepts/delegated-mode.md +56 -17
  22. package/agent-assets/docs/concepts/memory-model.md +77 -34
  23. package/agent-assets/docs/concepts/observations.md +49 -11
  24. package/agent-assets/docs/concepts/process-keys.md +56 -22
  25. package/agent-assets/docs/concepts/routines.md +60 -33
  26. package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
  27. package/agent-assets/docs/concepts/safety-model.md +61 -50
  28. package/agent-assets/docs/concepts/skills.md +34 -18
  29. package/agent-assets/docs/features/integrations/browser-history.md +196 -0
  30. package/agent-assets/docs/features/integrations/calendar.md +39 -29
  31. package/agent-assets/docs/features/integrations/git.md +18 -7
  32. package/agent-assets/docs/features/integrations/github.md +84 -33
  33. package/agent-assets/docs/features/integrations/mail.md +61 -17
  34. package/agent-assets/docs/features/integrations/notion.md +18 -6
  35. package/agent-assets/docs/features/integrations/obsidian.md +28 -5
  36. package/agent-assets/docs/features/lifestyle/git.md +44 -40
  37. package/agent-assets/docs/features/lifestyle/reading.md +57 -22
  38. package/agent-assets/docs/features/lifestyle/receipts.md +51 -21
  39. package/agent-assets/docs/features/lifestyle/travel-bookings.md +77 -14
  40. package/agent-assets/docs/features/memory-files/agent-journal.md +132 -53
  41. package/agent-assets/docs/features/memory-files/agent-lessons.md +177 -0
  42. package/agent-assets/docs/features/memory-files/projects.md +73 -17
  43. package/agent-assets/docs/features/memory-files/roadmap.md +54 -11
  44. package/agent-assets/docs/features/memory-files/schedule.md +113 -70
  45. package/agent-assets/docs/features/memory-files/today.md +46 -21
  46. package/agent-assets/docs/features/memory-files/user-profile.md +63 -33
  47. package/agent-assets/docs/features/messaging/bang-commands.md +113 -36
  48. package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
  49. package/agent-assets/docs/features/messaging/discord.md +35 -4
  50. package/agent-assets/docs/features/messaging/overview.md +37 -19
  51. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
  52. package/agent-assets/docs/features/messaging/slack.md +67 -14
  53. package/agent-assets/docs/features/messaging/telegram.md +22 -8
  54. package/agent-assets/docs/features/messaging/whatsapp.md +71 -17
  55. package/agent-assets/docs/features/operations/activity-and-conversations.md +45 -15
  56. package/agent-assets/docs/features/operations/approvals.md +49 -16
  57. package/agent-assets/docs/features/operations/backend-routing.md +68 -16
  58. package/agent-assets/docs/features/operations/cost-tracking.md +84 -17
  59. package/agent-assets/docs/features/operations/managed-chromium.md +222 -0
  60. package/agent-assets/docs/features/operations/notifications.md +52 -11
  61. package/agent-assets/docs/features/operations/quiet-hours.md +64 -40
  62. package/agent-assets/docs/features/operations/schedule-approaching.md +54 -24
  63. package/agent-assets/docs/features/routines/custom-routines.md +98 -26
  64. package/agent-assets/docs/features/routines/evening-review.md +82 -21
  65. package/agent-assets/docs/features/routines/hourly-check.md +149 -29
  66. package/agent-assets/docs/features/routines/morning-routine.md +54 -35
  67. package/agent-assets/docs/features/routines/weekly-review.md +46 -21
  68. package/agent-assets/docs/features/wiki/commands.md +26 -16
  69. package/agent-assets/docs/features/wiki/cost-and-approval.md +241 -0
  70. package/agent-assets/docs/features/wiki/dashboard.md +256 -0
  71. package/agent-assets/docs/features/wiki/overview.md +70 -12
  72. package/agent-assets/docs/features/wiki/search.md +248 -0
  73. package/agent-assets/docs/features/wiki/workspaces.md +254 -0
  74. package/agent-assets/docs/getting-started/01-what-is-this.md +34 -23
  75. package/agent-assets/docs/getting-started/02-first-steps.md +17 -10
  76. package/agent-assets/docs/getting-started/03-what-can-this-do.md +25 -14
  77. package/agent-assets/docs/getting-started/04-first-day.md +39 -21
  78. package/agent-assets/docs/glossary.md +235 -24
  79. package/agent-assets/docs/guides/add-a-custom-routine.md +63 -23
  80. package/agent-assets/docs/guides/backup-and-restore.md +80 -16
  81. package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +57 -26
  82. package/agent-assets/docs/guides/build-your-wiki.md +22 -9
  83. package/agent-assets/docs/guides/change-which-model-handles-x.md +64 -10
  84. package/agent-assets/docs/guides/connect-a-new-mail-account.md +66 -15
  85. package/agent-assets/docs/guides/explore-with-trace-and-connect.md +32 -14
  86. package/agent-assets/docs/guides/import-knowledge-file.md +50 -40
  87. package/agent-assets/docs/guides/install-and-run.md +49 -20
  88. package/agent-assets/docs/guides/maintain-wiki-health.md +35 -10
  89. package/agent-assets/docs/guides/migrate-machines.md +74 -18
  90. package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +111 -60
  91. package/agent-assets/docs/guides/pause-the-agent.md +69 -24
  92. package/agent-assets/docs/guides/reinstall-cleanly.md +88 -18
  93. package/agent-assets/docs/guides/setup-wizard.md +116 -54
  94. package/agent-assets/docs/guides/switch-default-backend.md +62 -16
  95. package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +30 -14
  96. package/agent-assets/docs/reference/api.md +153 -32
  97. package/agent-assets/docs/reference/cli-commands.md +39 -18
  98. package/agent-assets/docs/reference/config.md +241 -49
  99. package/agent-assets/docs/reference/disallowed-tools.md +34 -13
  100. package/agent-assets/docs/reference/keyboard-shortcuts.md +34 -10
  101. package/agent-assets/docs/reference/knowledge-layout.md +629 -0
  102. package/agent-assets/docs/reference/process-keys.md +62 -6
  103. package/agent-assets/docs/reference/skills.md +41 -14
  104. package/agent-assets/docs/troubleshooting/auth-failed.md +51 -21
  105. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +97 -28
  106. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +86 -22
  107. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +68 -24
  108. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +80 -20
  109. package/agent-assets/docs/troubleshooting/observation-not-detected.md +73 -21
  110. package/agent-assets/docs/troubleshooting/quota-exhausted.md +33 -8
  111. package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +126 -54
  112. package/agent-assets/docs/troubleshooting/wiki-write-failed.md +29 -12
  113. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
  114. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
  115. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +1 -1
  116. package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
  117. package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
  118. package/agent-assets/skills/agent-actions/SKILL.md +25 -41
  119. package/agent-assets/skills/agent-create/SKILL.md +158 -0
  120. package/agent-assets/skills/attach/SKILL.md +10 -29
  121. package/agent-assets/skills/browser-history/SKILL.md +211 -0
  122. package/agent-assets/skills/browser-history-respond/SKILL.md +111 -0
  123. package/agent-assets/skills/browser-task/SKILL.md +164 -0
  124. package/agent-assets/skills/context/SKILL.md +35 -44
  125. package/agent-assets/skills/context/curation.json +14 -14
  126. package/agent-assets/skills/context/references/api.md +52 -40
  127. package/agent-assets/skills/context/references/required-frontmatter.md +13 -12
  128. package/agent-assets/skills/context/references/snapshot-files.md +18 -17
  129. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +8 -8
  130. package/agent-assets/skills/context/seeds/frontmatter-requirements.seed.json +3 -3
  131. package/agent-assets/skills/docs-search/SKILL.md +23 -34
  132. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +17 -114
  133. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +17 -113
  134. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +17 -113
  135. package/agent-assets/skills/external-services/SKILL.md +3 -3
  136. package/agent-assets/skills/external-services/SKILL.native.claude.md +7 -7
  137. package/agent-assets/skills/external-services/SKILL.native.codex.md +7 -7
  138. package/agent-assets/skills/external-services/SKILL.native.gemini.md +4 -4
  139. package/agent-assets/skills/external-services/references/calendar-apple.md +2 -2
  140. package/agent-assets/skills/external-services/references/calendar-outlook.md +1 -1
  141. package/agent-assets/skills/external-services/references/exec-errors.md +32 -0
  142. package/agent-assets/skills/external-services/references/obsidian.md +2 -2
  143. package/agent-assets/skills/external-services/references/skills-crud.md +5 -5
  144. package/agent-assets/skills/gmail-lifestyle/SKILL.md +11 -83
  145. package/agent-assets/skills/gmail-lifestyle/references/receipts-api.md +4 -0
  146. package/agent-assets/skills/gmail-lifestyle/references/travel-bookings-api.md +9 -0
  147. package/agent-assets/skills/mail/SKILL.delegated.claude.md +15 -18
  148. package/agent-assets/skills/mail/SKILL.delegated.codex.md +11 -6
  149. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +11 -6
  150. package/agent-assets/skills/mail/SKILL.md +10 -18
  151. package/agent-assets/skills/mail/SKILL.native.claude.md +8 -7
  152. package/agent-assets/skills/mail/SKILL.native.codex.md +1 -1
  153. package/agent-assets/skills/mail/SKILL.native.gemini.md +1 -1
  154. package/agent-assets/skills/mail/references/api.md +10 -3
  155. package/agent-assets/skills/mail/references/examples.md +2 -1
  156. package/agent-assets/skills/mail/references/providers.md +1 -1
  157. package/agent-assets/skills/managed-tasks/SKILL.md +48 -81
  158. package/agent-assets/skills/managed-tasks/references/errors.md +33 -19
  159. package/agent-assets/skills/managed-tasks/references/output-path.md +33 -17
  160. package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +7 -5
  161. package/agent-assets/skills/management-policy/SKILL.md +42 -42
  162. package/agent-assets/skills/management-policy/curation.json +1 -1
  163. package/agent-assets/skills/management-policy/references/policy-workflow.md +11 -12
  164. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
  165. package/agent-assets/skills/notify/SKILL.md +14 -16
  166. package/agent-assets/skills/notify/references/priority.md +28 -20
  167. package/agent-assets/skills/notion/SKILL.delegated.claude.md +2 -2
  168. package/agent-assets/skills/notion/SKILL.delegated.codex.md +2 -2
  169. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +2 -2
  170. package/agent-assets/skills/notion/SKILL.md +17 -17
  171. package/agent-assets/skills/notion/SKILL.native.claude.md +11 -7
  172. package/agent-assets/skills/notion/SKILL.native.codex.md +10 -5
  173. package/agent-assets/skills/notion/SKILL.native.gemini.md +10 -5
  174. package/agent-assets/skills/observations/SKILL.md +29 -28
  175. package/agent-assets/skills/observations/references/fetch-fallback.md +22 -0
  176. package/agent-assets/skills/project-doc/SKILL.md +10 -7
  177. package/agent-assets/skills/project-doc/curation.json +3 -3
  178. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +8 -5
  179. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +5 -5
  180. package/agent-assets/skills/reading/SKILL.md +18 -42
  181. package/agent-assets/skills/reading/references/reading-taste.md +7 -7
  182. package/agent-assets/skills/roadmap/SKILL.md +8 -24
  183. package/agent-assets/skills/roadmap/curation.json +1 -1
  184. package/agent-assets/skills/roadmap/references/api.md +21 -11
  185. package/agent-assets/skills/roadmap/references/cross-check.md +15 -8
  186. package/agent-assets/skills/roadmap/references/horizon-tags.md +11 -0
  187. package/agent-assets/skills/roadmap/references/migration.md +12 -10
  188. package/agent-assets/skills/roadmap/references/retention.md +18 -0
  189. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
  190. package/agent-assets/skills/schedule/SKILL.md +41 -50
  191. package/agent-assets/skills/schedule/references/batch.md +2 -2
  192. package/agent-assets/skills/schedule/references/errors.md +7 -4
  193. package/agent-assets/skills/schedule/references/importance.md +23 -0
  194. package/agent-assets/skills/schedule/references/model-selection.md +3 -3
  195. package/agent-assets/skills/schedule/references/recurrence-rule.md +7 -5
  196. package/agent-assets/skills/scheduled-managed-task/SKILL.md +77 -70
  197. package/agent-assets/skills/today/SKILL.md +24 -83
  198. package/agent-assets/skills/today/curation.json +3 -3
  199. package/agent-assets/skills/today/references/agent-plan-lifecycle.md +6 -5
  200. package/agent-assets/skills/today/references/today-skeleton.md +66 -0
  201. package/agent-assets/skills/today/seeds/agent-notes-flavors.seed.json +1 -1
  202. package/agent-assets/skills/today/seeds/section-shape.seed.json +7 -7
  203. package/agent-assets/skills/user-interview/SKILL.md +21 -93
  204. package/agent-assets/skills/user-interview/references/op-briefing.md +3 -3
  205. package/agent-assets/skills/user-interview/references/op-dm-handler.md +88 -0
  206. package/agent-assets/skills/user-interview/references/op-morning.md +1 -1
  207. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +9 -1
  208. package/agent-assets/skills/user-profile/SKILL.md +29 -39
  209. package/agent-assets/skills/user-profile/curation.json +4 -4
  210. package/agent-assets/skills/user-profile/references/character-preferences.md +3 -3
  211. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
  212. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +6 -6
  213. package/agent-assets/skills/wiki/wiki-ask/SKILL.md +1 -1
  214. package/agent-assets/skills/wiki/wiki-compile/SKILL.md +9 -8
  215. package/agent-assets/skills/wiki/wiki-connect/SKILL.md +32 -5
  216. package/agent-assets/skills/wiki/wiki-ingest/SKILL.md +6 -50
  217. package/agent-assets/skills/wiki/wiki-ingest/references/curl-errors.md +58 -0
  218. package/agent-assets/skills/wiki/wiki-lint/SKILL.md +20 -14
  219. package/agent-assets/skills/wiki/wiki-trace/SKILL.md +10 -5
  220. package/agent-assets/skills/wiki/wiki-vault-rules/SKILL.md +2 -0
  221. package/agent-assets/system-prompts/routine-fetch-window.md +22 -12
  222. package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +4 -2
  223. package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +4 -2
  224. package/agent-assets/task-flows/_partials/capture-user-info.md +2 -2
  225. package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +1 -1
  226. package/agent-assets/task-flows/_partials/dm-intent.project.md +9 -9
  227. package/agent-assets/task-flows/_partials/feedback-capture.md +30 -0
  228. package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +3 -2
  229. package/agent-assets/task-flows/_partials/notion-acquire.notion.md +10 -5
  230. package/agent-assets/task-flows/browser_task.md +84 -0
  231. package/agent-assets/task-flows/github.assigned.md +1 -1
  232. package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
  233. package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
  234. package/agent-assets/task-flows/knowledge.import.md +14 -14
  235. package/agent-assets/task-flows/message.received.dm.md +13 -4
  236. package/agent-assets/task-flows/message.received.dm_first.md +7 -3
  237. package/agent-assets/task-flows/routine.custom.md +3 -3
  238. package/agent-assets/task-flows/routine.evening_review.md +88 -8
  239. package/agent-assets/task-flows/routine.fetch_window.md +2 -2
  240. package/agent-assets/task-flows/routine.hourly_check.md +16 -12
  241. package/agent-assets/task-flows/routine.monthly_review.md +93 -21
  242. package/agent-assets/task-flows/routine.morning_routine_journal.md +119 -97
  243. package/agent-assets/task-flows/routine.morning_routine_today.md +43 -43
  244. package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
  245. package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
  246. package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
  247. package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
  248. package/agent-assets/task-flows/routine.roadmap_refresh.md +10 -10
  249. package/agent-assets/task-flows/routine.today_refresh.md +4 -4
  250. package/agent-assets/task-flows/routine.user_profile_sweep.md +10 -10
  251. package/agent-assets/task-flows/routine.weekly_review.md +114 -24
  252. package/agent-assets/task-flows/schedule.approaching.md +0 -1
  253. package/agent-assets/task-flows/scheduled.dm.md +5 -5
  254. package/agent-assets/task-flows/scheduled.task.md +4 -4
  255. package/agent-assets/task-flows/setup.initial.md +21 -21
  256. package/agent-assets/task-flows/setup.update.md +2 -2
  257. package/agent-assets/task-flows/wiki.trace.md +1 -1
  258. package/agent-assets/templates/README.md +27 -20
  259. package/agent-assets/templates/_index.md +42 -26
  260. package/agent-assets/templates/_manifest.json +34 -99
  261. package/agent-assets/templates/{user → identity}/_index.md +1 -1
  262. package/agent-assets/templates/{user → identity}/profile.md +2 -2
  263. package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +1 -1
  264. package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
  265. package/agent-assets/templates/policies/_index.md +21 -0
  266. package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
  267. package/agent-assets/templates/{rules → policies}/journal-format.md +5 -5
  268. package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
  269. package/agent-assets/templates/{rules → policies}/management.md +3 -3
  270. package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
  271. package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
  272. package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
  273. package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
  274. package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
  275. package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
  276. package/bin/aitne.mjs +58 -15
  277. package/package.json +5 -4
  278. package/scripts/commands/doctor.mjs +25 -10
  279. package/scripts/commands/run-now.mjs +6 -21
  280. package/scripts/lib/ports.d.mts +27 -0
  281. package/scripts/lib/ports.mjs +36 -0
  282. package/scripts/lib/process-identity.d.mts +46 -0
  283. package/scripts/lib/process-identity.mjs +193 -0
  284. package/scripts/lib/read-api-token.mjs +176 -0
  285. package/scripts/start.mjs +16 -5
  286. package/agent-assets/docs/features/lifestyle/travel-time.md +0 -58
  287. package/agent-assets/skills/gmail-lifestyle/references/travel-time-api.md +0 -59
  288. package/agent-assets/skills/schedule/references/recurring.md +0 -185
  289. package/agent-assets/templates/context-index.md +0 -42
  290. package/agent-assets/templates/rules/_index.md +0 -19
  291. /package/agent-assets/templates/{user → identity}/expertise.md +0 -0
  292. /package/agent-assets/templates/{user → identity}/goals.md +0 -0
  293. /package/agent-assets/templates/{user → identity}/people.md +0 -0
  294. /package/agent-assets/templates/{user → identity}/personal.md +0 -0
  295. /package/agent-assets/templates/{user → identity}/work.md +0 -0
  296. /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
  297. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
  298. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
  299. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
  300. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
  301. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
  302. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
  303. /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
  304. /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
  305. /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
  306. /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
  307. /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
  308. /package/agent-assets/templates/{today.md → state/today.md} +0 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  schema_version: 1
3
3
  slug: features/memory-files/agent-journal
4
- title: agent/journal.md
4
+ title: journal/agent.md
5
5
  id: agent-journal
6
6
  aliases:
7
7
  - journal
@@ -10,96 +10,175 @@ aliases:
10
10
  category: features
11
11
  summary: |
12
12
  The agent's append-only log of decisions, retros, and judgement
13
- calls. Distinct from Activity (which is action-shaped) — the journal
14
- is reflection-shaped.
13
+ calls, at journal/agent.md. Distinct from Activity (which is
14
+ action-shaped) — the journal is reflection-shaped. Written by the
15
+ morning, evening, and weekly routines; the API enforces append-only.
15
16
  section: memory-files
16
17
  tags:
17
18
  - memory
18
19
  - journal
19
20
  - reflection
21
+ - routines
20
22
  status: stable
21
23
  ask_examples:
22
24
  - What is the agent journal?
23
25
  - Where does the agent log its own decisions?
24
26
  - How is the journal different from Activity?
27
+ - Why did journal/agent.md stop growing?
25
28
  locale: en-US
26
29
  created: 2026-04-25
27
- updated: 2026-04-25
30
+ updated: 2026-06-07
28
31
  keywords:
29
32
  - journal
30
33
  - retros
31
34
  - decisions
32
35
  - reflection
36
+ - append-only
33
37
  related:
38
+ - features/routines/morning-routine
34
39
  - features/routines/evening-review
35
40
  - features/routines/weekly-review
41
+ - features/memory-files/agent-lessons
36
42
  - features/operations/activity-and-conversations
43
+ - concepts/memory-model
44
+ process_keys:
45
+ - routine.morning_routine_journal
46
+ - routine.evening_review
47
+ - routine.weekly_review
48
+ context_files:
49
+ - journal/agent.md
37
50
  ui_anchors:
38
- - /connections/journal
51
+ - /knowledge?tab=context-files
39
52
  - /settings/journal
40
- context_files:
41
- - agent/journal.md
42
53
  ---
43
54
 
44
- # agent/journal.md
55
+ # journal/agent.md
45
56
 
46
- ## In One Sentence
57
+ ## In one sentence
47
58
 
48
- `agent/journal.md` is the agent's own running diary — what it noticed,
59
+ `journal/agent.md` is the agent's own running diary — what it noticed,
49
60
  what it tried, what it would do differently — appended (never
50
61
  rewritten) so a long timeline accumulates.
51
62
 
52
- ## What It Does
63
+ ## What it is
53
64
 
54
65
  The journal is the place the agent writes about its own work in the
55
- first person. Each entry has:
56
-
57
- - A timestamp.
58
- - A short context line (which routine / conversation prompted it).
59
- - The reflection itself.
60
-
61
- Unlike Activity, the journal is opinion-shaped. The evening review
62
- adds the day's reflections; the weekly retro reads them back to
63
- look for patterns.
64
-
65
- ## When It Runs / How It Is Triggered
66
+ first person. Unlike Activity — which is the action-shaped audit log
67
+ of *what happened* — the journal is reflection-shaped: it captures
68
+ *why*, *what surprised it*, and *what it would change*.
66
69
 
67
- - **Evening review** adds the largest chunk — what worked, what was
68
- surprising, what felt off.
69
- - **Weekly review** appends a retro that quotes prior journal entries
70
- to find a thread.
71
- - **In-the-moment** entries fire when the agent notices something
72
- worth flagging during reactive work.
70
+ Each entry carries:
73
71
 
74
- ## What It Outputs
75
-
76
- - An ever-growing append-only file at
77
- `~/.personal-agent/context/agent/journal.md`.
78
- - A linked-from-roadmap section when an entry tied a project to a new
79
- decision.
80
-
81
- ## Where in the Dashboard
72
+ - A dated heading — the morning routine stamps a
73
+ `## YYYY-MM-DD morning routine` H2; the weekly and monthly retros add
74
+ a `> Appended at: YYYY-MM-DD HH:MM` line under their section header.
75
+ - A short context line — which routine or conversation prompted it.
76
+ - The reflection itself.
82
77
 
83
- - **Connections Journal** is the read view of the file.
84
- - **Settings Journal** controls retention and which routines
85
- contribute (currently always-on for evening / weekly).
78
+ The file lives at `~/.personal-agent/context/journal/agent.md`. The
79
+ day-to-day morning and ad-hoc entries accumulate indefinitely; the
80
+ daily retention rollup keeps only a rolling window of the structured
81
+ retros (the most recent 12 `## Weekly` and 24 `## Monthly` sections),
82
+ pruning older ones. Later routines read it back to look for patterns.
83
+
84
+ ## Who writes it, and when
85
+
86
+ Three routines append to the journal — none ever rewrites it:
87
+
88
+ - **Morning routine** (Stage B, `routine.morning_routine_journal`) is
89
+ the recurring daily writer. After the day's stages settle, the
90
+ daemon appends a one-paragraph audit-trail entry assembled from the
91
+ prior day's `agent_actions` — stage results, retry stats, anomalies.
92
+ This is the entry you'll see most often.
93
+ - **Weekly review** (`routine.weekly_review`) appends the largest
94
+ structured block: a `## Weekly YYYY-Www` retro with *What worked*,
95
+ *What slipped on my side*, *System improvement ideas*, and agent-side
96
+ metrics. It quotes prior entries to find a thread.
97
+ - **Evening review** (`routine.evening_review`) appends short
98
+ bookkeeping lines — for example a one-liner each time it bumps a
99
+ roadmap review forward, or a validation error if a roadmap write was
100
+ rejected. It does not write the bulk of the diary.
101
+
102
+ In-the-moment notes can also land here when the agent flags something
103
+ worth recording during reactive work.
104
+
105
+ ### Example entry
106
+
107
+ ```
108
+ ## Weekly 2026-W21
109
+ > Appended at: 2026-05-25 21:40
110
+
111
+ ### What worked
112
+ - Morning brief landed before the 09:00 standup three days running.
113
+ ### What slipped on my side
114
+ - Missed the Friday PR-review trigger — webhook arrived during quiet hours.
115
+ ### System improvement ideas
116
+ - Add Saturday to the Weekend day-type default so weekend pushes triage.
117
+ ### Metrics (agent side)
118
+ - Agent plan rows completed: 12
119
+ - Did-not-fire / failed rows: 1
120
+ - Observations reviewed / ignored: 18 / 4
121
+ ```
122
+
123
+ ## Append-only — enforced, not just convention
124
+
125
+ The journal is append-only at the API layer, not merely by prompt
126
+ discipline. `journal/agent.md` is the sole entry in `CREATE_ONLY_PUT`:
127
+ a `PUT` only succeeds if the file does not yet exist, and a `PATCH`
128
+ must use `append` or `append_to_file` mode. A `replace` or `clear`
129
+ PATCH is rejected outright, so a misbehaving (or prompt-injected) agent
130
+ cannot destroy history. Writes go through the daemon context API
131
+ (`PATCH /api/context/journal/agent`) — the agent has no direct
132
+ `Edit`/`Write` access to the file.
133
+
134
+ ## Where in the dashboard
135
+
136
+ - **Knowledge → Context Files** (`/knowledge?tab=context-files`) is the
137
+ read view of the file — `journal/agent` is listed among the top-level
138
+ context files. It is flagged as sensitive: entering edit mode surfaces
139
+ a "deliberately pruning noise" warning before you change anything.
140
+ - **Settings → Journal** (`/settings/journal`) does *not* edit this
141
+ file. It is a two-tab editor for the daily-journal rule files —
142
+ `policies/journal-format.md` (sections, voice, frontmatter) and
143
+ `policies/journal-export.md` (redaction / inclusion rules) — both of
144
+ which the morning routine reads when synthesizing `daily/YYYY-MM-DD.md`,
145
+ not `journal/agent.md`. `/connections/journal` is a compatibility alias
146
+ that redirects here.
86
147
 
87
148
  ## Configuration
88
149
 
89
- There is no per-entry configuration. The file is plain Markdown — you
90
- can hand-edit, prune, or git-version it like any other context file.
91
-
92
- ## When Something Goes Wrong
93
-
94
- - A journal that **stops growing** points at the evening review not
95
- running. See [Evening Review](../routines/evening-review.md).
96
- - A journal that **looks duplicated** usually means a routine retried
97
- after a fallback. The agent's own anti-duplicate check is best-effort,
98
- not bulletproof manual prune is fine.
150
+ There is no per-entry configuration. The file is plain Markdown, so
151
+ **you** (the human owner) can hand-edit, prune, or git-version it like
152
+ any other context file — the API append-only guard applies only to the
153
+ agent's own writes, not to you editing the file on disk.
154
+
155
+ ## When something goes wrong
156
+
157
+ - **The journal stops growing.** This usually points at the morning
158
+ routine's Stage B (the daily writer) or the evening/weekly review not
159
+ running. See [Morning Routine](../routines/morning-routine.md) and
160
+ [Evening Review](../routines/evening-review.md).
161
+ - **Entries look duplicated.** This usually means a routine retried
162
+ after a backend fallback. Because writes are append-only, a retry
163
+ re-appends rather than overwrites — the weekly review deliberately
164
+ appends a fresh section instead of editing in place. The daemon's
165
+ daily retention rollup (`rollupAgentJournal`) collapses duplicate
166
+ `## Weekly YYYY-Www` / `## Monthly YYYY-MM` keys last-write-wins
167
+ within 24 hours, so duplicates self-heal; a manual prune is fine but
168
+ rarely needed.
99
169
 
100
170
  ## Related
101
171
 
102
- - [Evening Review](../routines/evening-review.md) — the daily writer.
103
- - [Weekly Review](../routines/weekly-review.md) — the consumer.
104
- - [Activity](../operations/activity-and-conversations.md) — the
105
- action-shaped audit log, distinct from the journal.
172
+ - [Morning Routine](../routines/morning-routine.md) — the recurring
173
+ daily writer (Stage B).
174
+ - [Weekly Review](../routines/weekly-review.md) — the largest retro,
175
+ and the main consumer that reads prior entries back.
176
+ - [Evening Review](../routines/evening-review.md) — appends short
177
+ bookkeeping lines.
178
+ - [Activity & Conversations](../operations/activity-and-conversations.md)
179
+ — the action-shaped audit log, distinct from the reflection-shaped
180
+ journal.
181
+ - [agent lessons](agent-lessons.md) — the directive-shaped learned-behavior
182
+ stores, distinct from this reflection-shaped diary.
183
+ - [Memory model](../../concepts/memory-model.md) — how the journal fits
184
+ the wider context vault.
@@ -0,0 +1,177 @@
1
+ ---
2
+ schema_version: 1
3
+ slug: features/memory-files/agent-lessons
4
+ title: agent lessons
5
+ id: agent-lessons
6
+ aliases:
7
+ - lessons
8
+ - agent lessons
9
+ - feedback learning loop
10
+ - policies/agent-lessons.md
11
+ category: features
12
+ summary: |
13
+ The agent's learned-behavior stores — a global policies/agent-lessons.md
14
+ plus a per-agent policies/agents/<slug>/lessons.md. Your corrections and
15
+ preferences, the agent's own self-critiques, and your reactions are
16
+ captured as feedback signals, consolidated nightly into dated lessons,
17
+ re-generalized monthly, and injected back into the right executions.
18
+ section: memory-files
19
+ tags:
20
+ - memory
21
+ - feedback
22
+ - learning
23
+ - routines
24
+ status: beta
25
+ ask_examples:
26
+ - What are the agent lessons?
27
+ - Where does the agent remember my corrections?
28
+ - How does the feedback learning loop work?
29
+ - What is a provisional lesson?
30
+ - How do I tune the lesson caps?
31
+ locale: en-US
32
+ created: 2026-06-08
33
+ updated: 2026-06-08
34
+ keywords:
35
+ - lessons
36
+ - feedback
37
+ - learning loop
38
+ - corrections
39
+ - preferences
40
+ - self-critique
41
+ - provisional
42
+ related:
43
+ - features/routines/evening-review
44
+ - features/routines/weekly-review
45
+ - features/memory-files/agent-journal
46
+ - reference/knowledge-layout
47
+ process_keys:
48
+ - routine.evening_review
49
+ - routine.weekly_review
50
+ - routine.monthly_review
51
+ context_files:
52
+ - policies/agent-lessons.md
53
+ - policies/agents/<slug>/lessons.md
54
+ ui_anchors:
55
+ - /settings/lessons
56
+ ---
57
+
58
+ # agent lessons
59
+
60
+ ## In one sentence
61
+
62
+ The lesson stores are where the agent remembers how you want it to
63
+ behave: a short, dated list of learned directives that grows from your
64
+ corrections and the agent's own retros, and is fed back into the agent's
65
+ work so it stops repeating the same mistakes.
66
+
67
+ ## What they are
68
+
69
+ There are two kinds of store:
70
+
71
+ - **Global agent behavior** — `policies/agent-lessons.md`. Lessons that
72
+ apply to the agent as a whole. These are injected into your DM
73
+ conversations and into the routines that decide whether to notify you.
74
+ - **Per-agent** — `policies/agents/<slug>/lessons.md`, one per Agent
75
+ Definition. These are injected **only** into that agent's own
76
+ executions, so a lesson learned for your "weekly-report" agent never
77
+ leaks into an unrelated one.
78
+
79
+ Both live under `~/.personal-agent/context/policies/`, alongside your
80
+ other rule files, and are plain Markdown you can read or hand-edit.
81
+
82
+ Each store is a `## Lessons` section of dated bullets. A lesson looks
83
+ like:
84
+
85
+ ```
86
+ - [2026-06-07] Keep the budget section in the weekly report. <!-- ev=2 kind=correction src=explicit conf=high last=2026-06-07 -->
87
+ ```
88
+
89
+ The trailing HTML comment is bookkeeping the daemon manages: how much
90
+ evidence backs the lesson (`ev`), what kind it is (a `correction`, a
91
+ `do-more`/`do-less`, a hard `constraint`, …), how it was sourced, and
92
+ when it was last reinforced. You can ignore the comment when reading —
93
+ the prose before it is the directive.
94
+
95
+ ## How a lesson is born
96
+
97
+ You never write these files to teach the agent a lesson; the loop does
98
+ it for you. There are three ways signals enter:
99
+
100
+ - **You correct it or state a preference.** When, in a DM, you correct
101
+ the agent, tell it how you want something done, or say
102
+ stop / do-more / do-less, it records that once as a feedback signal.
103
+ This does **not** change the current reply — your correction already
104
+ lives in that conversation — but it is remembered for later.
105
+ - **The agent critiques itself.** The [weekly](../routines/weekly-review.md)
106
+ and monthly reviews post each concrete, actionable improvement idea as
107
+ a `self_critique` signal.
108
+ - **Your reactions.** Whether you replied to or ignored a proactive
109
+ message is recorded as a weaker signal.
110
+
111
+ Those raw signals don't become lessons immediately. Each night the
112
+ [evening review](../routines/evening-review.md) folds the day's
113
+ unconsumed signals into the right store as dated lessons, then marks them
114
+ consumed (it skips the step entirely when nothing pends). Once a month
115
+ the monthly review runs a re-generalize pass that collapses several
116
+ same-theme lessons into one higher-level principle, keeping each store
117
+ small.
118
+
119
+ ## Provisional vs. active
120
+
121
+ A new lesson is stored but is not necessarily *injected* right away. A
122
+ lesson carries a `<!-- provisional -->` marker until it has enough
123
+ corroborating evidence; provisional lessons sit in the file but are not
124
+ fed into the agent's prompts. This avoids over-fitting to a single
125
+ offhand comment.
126
+
127
+ How a lesson crosses from provisional to active:
128
+
129
+ - A behavioral or self-critique lesson must reach weighted evidence at or
130
+ above the **promotion threshold** (`feedbackPromotionThreshold`,
131
+ default 2). Evidence is weighted by source — an explicit or corrected
132
+ signal counts 1.0, a reply or self-critique 0.5, an ignore 0.25.
133
+ - An **explicit owner directive** ("always do X", "stop doing Y")
134
+ promotes on the first occurrence — it is taken at your word.
135
+ - An **ignore on its own never promotes** a lesson, and is never read as
136
+ disapproval.
137
+
138
+ ## Bounded by design
139
+
140
+ The stores can't grow without limit. Each is capped in bytes and entry
141
+ count — the global store at `feedbackLessonMaxBytesGlobal` bytes
142
+ (default 8192) / 40 entries, the per-agent stores at
143
+ `feedbackLessonMaxBytesPerAgent` (default 4096) / 20 entries. When a
144
+ store is full, the lowest-signal lessons are dropped first. Lessons that
145
+ go untouched for `feedbackLessonStaleDays` (default 60) are pruned — with
146
+ one exception: a `kind=constraint` lesson is durable and is never
147
+ stale-pruned or collapsed away. The underlying feedback signals
148
+ themselves are retained for `feedbackSignalRetentionDays` (default 180).
149
+
150
+ ## Where in the dashboard
151
+
152
+ **Settings → Lessons** (`/settings/lessons`, labelled "Lessons" with a
153
+ **Preview** badge) is the read/tune surface. From there you can view and
154
+ edit the lessons themselves and adjust every knob above:
155
+ `feedbackLearningEnabled` (the master kill-switch, on by default),
156
+ `feedbackPromotionThreshold`, the byte caps, the stale-days horizon, and
157
+ the signal retention window. Turning `feedbackLearningEnabled` off stops
158
+ both capture and consolidation.
159
+
160
+ ## Configuration
161
+
162
+ All of the loop's knobs are listed above and live on the Lessons page;
163
+ there is nothing to configure in the files themselves. Because the stores
164
+ are plain Markdown, **you** can hand-edit, prune, or remove a lesson at
165
+ any time — the loop will pick up from whatever it finds the next night.
166
+
167
+ ## Related
168
+
169
+ - [Evening Review](../routines/evening-review.md) — folds the day's
170
+ feedback signals into these stores each night.
171
+ - [Weekly Review](../routines/weekly-review.md) — posts self-critique
172
+ signals that feed the loop. The monthly review re-generalizes the
173
+ stores once a month.
174
+ - [agent journal](agent-journal.md) — the reflection-shaped diary, a
175
+ separate file from these directive stores.
176
+ - [Knowledge layout](../../reference/knowledge-layout.md) — where the
177
+ `policies/` stores sit in the wider context vault.
@@ -1,16 +1,18 @@
1
1
  ---
2
2
  schema_version: 1
3
3
  slug: features/memory-files/projects
4
- title: projects/ files
4
+ title: plans/projects/ files
5
5
  id: projects
6
6
  aliases:
7
7
  - project files
8
8
  - projects directory
9
+ - plans/projects
9
10
  category: features
10
11
  summary: |
11
- One Markdown file per active project under projects/. Each captures
12
+ One Markdown file per project under plans/projects/. Each captures
12
13
  the project's why, status, key links, and the per-project log of
13
- agent activity. Cross-linked from the roadmap.
14
+ agent activity. Cross-linked from the roadmap and surfaced by the
15
+ morning routine while the project is active.
14
16
  section: memory-files
15
17
  tags:
16
18
  - memory
@@ -20,43 +22,97 @@ status: stable
20
22
  ask_examples:
21
23
  - Where do I find the per-project files?
22
24
  - How does the agent decide a project is active?
25
+ - How does the agent write to a project file?
23
26
  locale: en-US
24
27
  created: 2026-04-25
25
- updated: 2026-04-25
28
+ updated: 2026-06-07
26
29
  keywords:
27
- - projects.md
30
+ - projects
28
31
  - project file
29
- - projects/<slug>.md
32
+ - plans/projects/<slug>.md
30
33
  - active project
31
34
  related:
32
35
  - features/memory-files/roadmap
36
+ - features/memory-files/today
37
+ ui_anchors:
38
+ - /knowledge?tab=context-files
39
+ api_endpoints:
40
+ - GET /api/context/list/:dir
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
33
43
  context_files:
34
- - projects/<slug>.md
44
+ - plans/projects/<slug>.md
35
45
  ---
36
46
 
37
- # projects/ Files
47
+ # plans/projects/ Files
38
48
 
39
49
  ## In One Sentence
40
50
 
41
- One Markdown file per active project; the agent appends notes,
42
- decisions, and external references over the project's lifetime.
51
+ One Markdown file per project, stored at `plans/projects/<slug>.md`;
52
+ the agent appends notes, decisions, and external references over the
53
+ project's lifetime.
43
54
 
44
55
  ## What It Does
45
56
 
46
- - Captures the project's purpose, status, links, recent decisions.
47
- - Surfaces in the morning routine when the project is active and
48
- has Preparation Timeline rows.
57
+ - Captures the project's purpose, status, links, and recent decisions
58
+ in a single durable note.
59
+ - Surfaces in the morning routine while the project is active and the
60
+ roadmap has Preparation Timeline rows pointing at it.
49
61
  - Becomes the canonical reference the agent quotes from in DMs.
50
62
 
63
+ ## File Shape
64
+
65
+ Each file lives at `plans/projects/<slug>.md`. The daemon validates
66
+ only the minimum — `type: project`, `owner: shared`, an `updated`
67
+ date, and an H1 title. By convention the agent also writes `slug`,
68
+ `state`, `start`, `due`, `stakeholders`, `next_milestone`, and `tags`.
69
+
70
+ `state` is what marks a project **active**: the Obsidian `_active.base`
71
+ Bases view filters on it (`state != "archived"`), and the morning
72
+ routine surfaces every project whose `state` is not `archived` — a
73
+ file with no `state` (or any state other than `archived`) is treated
74
+ as active and surfaced.
75
+
76
+ ```markdown
77
+ ---
78
+ type: project
79
+ owner: shared
80
+ slug: spring-launch
81
+ state: active
82
+ due: 2026-06-15
83
+ next_milestone: ship beta
84
+ updated: 2026-05-28
85
+ ---
86
+
87
+ # Spring Launch
88
+
89
+ ## Why
90
+ Ship the public beta before the conference.
91
+
92
+ ## Log
93
+ - 2026-05-28: agreed to cut feature X for v1.
94
+ ```
95
+
51
96
  ## When It Runs / How It Is Triggered
52
97
 
53
- Read on demand. Written when the operator asks the agent to
54
- remember something project-specific.
98
+ Read on demand. Written when the operator asks the agent to remember
99
+ something project-specific, or when a DM expresses project intent
100
+ (create, update status, mark done).
101
+
102
+ The agent never edits files on disk — it has no `Edit`/`Write` tools.
103
+ All project writes go through the context API:
104
+
105
+ - `GET /api/context/list/projects` — discover existing project files.
106
+ - `PUT /api/context/plans/projects/<slug>` — create or fully replace.
107
+ - `PATCH /api/context/plans/projects/<slug>` — append a log line or
108
+ update a section.
55
109
 
56
110
  ## Where in the Dashboard
57
111
 
58
- - **Knowledge → Context Files projects/**.
112
+ - **Knowledge → Context Files** (`/knowledge?tab=context-files`), under
113
+ the `plans/projects/` folder.
59
114
 
60
115
  ## Related
61
116
 
62
- - [roadmap.md](roadmap.md)
117
+ - [roadmap.md](roadmap.md) — cross-links to project files for deeper context.
118
+ - [today.md](today.md) — where active-project prep surfaces each day.
@@ -15,26 +15,33 @@ summary: |
15
15
  section: memory-files
16
16
  tags:
17
17
  - memory
18
- - planning
19
18
  - core
20
19
  status: stable
21
20
  ask_examples:
22
21
  - What is the roadmap file?
23
22
  - What is a Preparation Timeline?
24
23
  - How does the morning routine use the roadmap?
24
+ - How do I add a roadmap entry?
25
25
  locale: en-US
26
26
  created: 2026-04-25
27
- updated: 2026-04-25
27
+ updated: 2026-06-07
28
28
  keywords:
29
29
  - roadmap.md
30
30
  - roadmap
31
31
  - long-term goals
32
32
  - preparation timeline
33
+ - milestones
33
34
  related:
34
35
  - features/routines/morning-routine
35
36
  - features/memory-files/projects
37
+ - features/memory-files/today
38
+ ui_anchors:
39
+ - /knowledge?tab=context-files
40
+ api_endpoints:
41
+ - PUT /api/context/*
42
+ - PATCH /api/context/*
36
43
  context_files:
37
- - roadmap.md
44
+ - plans/roadmap.md
38
45
  ---
39
46
 
40
47
  # roadmap.md
@@ -42,19 +49,54 @@ context_files:
42
49
  ## In One Sentence
43
50
 
44
51
  A multi-week plan: each goal carries dates and Preparation Timeline
45
- rows the morning routine fires on the day of.
52
+ rows that the morning routine fires on the day they come due.
46
53
 
47
54
  ## What It Does
48
55
 
49
- - Captures long-running goals beyond a single day.
50
- - Preparation Timeline rows like "T-7 days: book hotel" surface in
51
- the morning routine on the right day.
56
+ - Captures long-running goals that span more than a single day, so
57
+ they don't fall out of `state/today.md` (which is replaced fresh
58
+ each morning).
59
+ - Preparation Timeline rows like "2026-06-13 [notify]: book hotel"
60
+ surface in the morning routine on the day each row is dated (or once
61
+ it is overdue) — turning a far-off milestone into concrete actions at
62
+ the right moment.
52
63
  - Cross-links to project files for deeper context.
53
64
 
65
+ ## What It Looks Like
66
+
67
+ A goal with a Preparation Timeline is just Markdown the agent reads
68
+ each morning. For example:
69
+
70
+ ```markdown
71
+ ### 2026-06-20: Conference talk
72
+
73
+ Goal: deliver the keynote in Tokyo.
74
+
75
+ **Preparation Timeline:**
76
+ - 2026-06-06 [today]: finalize slide deck
77
+ - 2026-06-13 [notify]: book hotel
78
+ - 2026-06-18 [today]: dry run with the team
79
+ - 2026-06-20 [today]: travel day
80
+ ```
81
+
82
+ Each Preparation Timeline row carries an absolute date and a tag
83
+ (`[notify]`, `[today]`, `[check]`, or `[schedule]`). On 2026-06-06 the
84
+ morning routine sees the `2026-06-06` row come due and pulls "finalize
85
+ slide deck" into that day's plan; on 2026-06-13 it surfaces "book
86
+ hotel", and so on.
87
+
54
88
  ## When It Runs / How It Is Triggered
55
89
 
56
- Read by the morning routine; updated by the operator (or the agent
57
- on request).
90
+ Read by the morning routine each day, which walks the roadmap and
91
+ surfaces any Preparation Timeline rows dated for that day (or overdue).
92
+ The file is updated by the operator, or by the agent on request (for
93
+ example via the roadmap skill or `aitne run-now roadmap_maintenance`).
94
+
95
+ The agent never edits the file directly. All writes go through the
96
+ daemon's context endpoint — `PUT /api/context/plans/roadmap` (full
97
+ replace) or `PATCH /api/context/plans/roadmap` (section op) — which is
98
+ guarded by an exclusive roadmap write lock so two flows can't clobber
99
+ each other.
58
100
 
59
101
  ## Where in the Dashboard
60
102
 
@@ -62,5 +104,6 @@ on request).
62
104
 
63
105
  ## Related
64
106
 
65
- - [Morning Routine](../routines/morning-routine.md)
66
- - [Projects](projects.md)
107
+ - [Morning Routine](../../routines/morning-routine.md) — reads the roadmap each day.
108
+ - [Projects](projects.md) — deeper, per-project context the roadmap links to.
109
+ - [today.md](today.md) — the single-day plan the roadmap feeds into.