@aitne-sh/aitne 0.1.8 → 0.1.9

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 (276) hide show
  1. package/README.md +218 -161
  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 +50 -15
  21. package/agent-assets/docs/concepts/delegated-mode.md +52 -13
  22. package/agent-assets/docs/concepts/memory-model.md +72 -32
  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 +42 -34
  28. package/agent-assets/docs/concepts/skills.md +33 -17
  29. package/agent-assets/docs/features/integrations/browser-history.md +195 -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 +59 -16
  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 +42 -38
  37. package/agent-assets/docs/features/lifestyle/reading.md +50 -22
  38. package/agent-assets/docs/features/lifestyle/receipts.md +51 -21
  39. package/agent-assets/docs/features/lifestyle/travel-bookings.md +76 -14
  40. package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
  41. package/agent-assets/docs/features/memory-files/projects.md +71 -17
  42. package/agent-assets/docs/features/memory-files/roadmap.md +50 -10
  43. package/agent-assets/docs/features/memory-files/schedule.md +113 -70
  44. package/agent-assets/docs/features/memory-files/today.md +46 -21
  45. package/agent-assets/docs/features/memory-files/user-profile.md +63 -33
  46. package/agent-assets/docs/features/messaging/bang-commands.md +113 -36
  47. package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
  48. package/agent-assets/docs/features/messaging/discord.md +35 -4
  49. package/agent-assets/docs/features/messaging/overview.md +37 -19
  50. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
  51. package/agent-assets/docs/features/messaging/slack.md +67 -14
  52. package/agent-assets/docs/features/messaging/telegram.md +18 -5
  53. package/agent-assets/docs/features/messaging/whatsapp.md +71 -17
  54. package/agent-assets/docs/features/operations/activity-and-conversations.md +44 -15
  55. package/agent-assets/docs/features/operations/approvals.md +48 -16
  56. package/agent-assets/docs/features/operations/backend-routing.md +68 -16
  57. package/agent-assets/docs/features/operations/cost-tracking.md +84 -17
  58. package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
  59. package/agent-assets/docs/features/operations/notifications.md +52 -11
  60. package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
  61. package/agent-assets/docs/features/operations/schedule-approaching.md +54 -24
  62. package/agent-assets/docs/features/routines/custom-routines.md +88 -20
  63. package/agent-assets/docs/features/routines/evening-review.md +74 -21
  64. package/agent-assets/docs/features/routines/hourly-check.md +149 -29
  65. package/agent-assets/docs/features/routines/morning-routine.md +53 -35
  66. package/agent-assets/docs/features/routines/weekly-review.md +40 -21
  67. package/agent-assets/docs/features/wiki/commands.md +26 -16
  68. package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
  69. package/agent-assets/docs/features/wiki/dashboard.md +255 -0
  70. package/agent-assets/docs/features/wiki/overview.md +68 -10
  71. package/agent-assets/docs/features/wiki/search.md +248 -0
  72. package/agent-assets/docs/features/wiki/workspaces.md +254 -0
  73. package/agent-assets/docs/getting-started/01-what-is-this.md +34 -23
  74. package/agent-assets/docs/getting-started/02-first-steps.md +13 -8
  75. package/agent-assets/docs/getting-started/03-what-can-this-do.md +25 -14
  76. package/agent-assets/docs/getting-started/04-first-day.md +38 -20
  77. package/agent-assets/docs/glossary.md +235 -24
  78. package/agent-assets/docs/guides/add-a-custom-routine.md +63 -23
  79. package/agent-assets/docs/guides/backup-and-restore.md +80 -16
  80. package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +56 -25
  81. package/agent-assets/docs/guides/build-your-wiki.md +22 -9
  82. package/agent-assets/docs/guides/change-which-model-handles-x.md +64 -10
  83. package/agent-assets/docs/guides/connect-a-new-mail-account.md +64 -15
  84. package/agent-assets/docs/guides/explore-with-trace-and-connect.md +28 -11
  85. package/agent-assets/docs/guides/import-knowledge-file.md +50 -40
  86. package/agent-assets/docs/guides/install-and-run.md +48 -19
  87. package/agent-assets/docs/guides/maintain-wiki-health.md +35 -10
  88. package/agent-assets/docs/guides/migrate-machines.md +74 -18
  89. package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +111 -60
  90. package/agent-assets/docs/guides/pause-the-agent.md +65 -24
  91. package/agent-assets/docs/guides/reinstall-cleanly.md +88 -18
  92. package/agent-assets/docs/guides/setup-wizard.md +113 -54
  93. package/agent-assets/docs/guides/switch-default-backend.md +62 -16
  94. package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +26 -10
  95. package/agent-assets/docs/reference/api.md +143 -32
  96. package/agent-assets/docs/reference/cli-commands.md +38 -17
  97. package/agent-assets/docs/reference/config.md +224 -49
  98. package/agent-assets/docs/reference/disallowed-tools.md +29 -10
  99. package/agent-assets/docs/reference/keyboard-shortcuts.md +34 -10
  100. package/agent-assets/docs/reference/knowledge-layout.md +620 -0
  101. package/agent-assets/docs/reference/process-keys.md +61 -5
  102. package/agent-assets/docs/reference/skills.md +38 -12
  103. package/agent-assets/docs/troubleshooting/auth-failed.md +48 -19
  104. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +90 -28
  105. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +86 -22
  106. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +68 -24
  107. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +80 -20
  108. package/agent-assets/docs/troubleshooting/observation-not-detected.md +73 -21
  109. package/agent-assets/docs/troubleshooting/quota-exhausted.md +29 -5
  110. package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +126 -54
  111. package/agent-assets/docs/troubleshooting/wiki-write-failed.md +29 -12
  112. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
  113. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
  114. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +1 -1
  115. package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
  116. package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
  117. package/agent-assets/skills/agent-actions/SKILL.md +2 -2
  118. package/agent-assets/skills/agent-create/SKILL.md +149 -0
  119. package/agent-assets/skills/attach/SKILL.md +2 -2
  120. package/agent-assets/skills/browser-history/SKILL.md +198 -0
  121. package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
  122. package/agent-assets/skills/browser-task/SKILL.md +169 -0
  123. package/agent-assets/skills/context/SKILL.md +12 -12
  124. package/agent-assets/skills/context/curation.json +2 -2
  125. package/agent-assets/skills/context/references/api.md +43 -31
  126. package/agent-assets/skills/context/references/required-frontmatter.md +3 -3
  127. package/agent-assets/skills/context/references/snapshot-files.md +6 -6
  128. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +3 -3
  129. package/agent-assets/skills/docs-search/SKILL.md +4 -3
  130. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +11 -21
  131. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +11 -21
  132. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +11 -21
  133. package/agent-assets/skills/external-services/SKILL.md +3 -3
  134. package/agent-assets/skills/external-services/SKILL.native.claude.md +5 -5
  135. package/agent-assets/skills/external-services/SKILL.native.codex.md +7 -7
  136. package/agent-assets/skills/external-services/SKILL.native.gemini.md +4 -4
  137. package/agent-assets/skills/external-services/references/calendar-apple.md +2 -2
  138. package/agent-assets/skills/external-services/references/calendar-outlook.md +1 -1
  139. package/agent-assets/skills/external-services/references/obsidian.md +2 -2
  140. package/agent-assets/skills/gmail-lifestyle/SKILL.md +9 -82
  141. package/agent-assets/skills/mail/SKILL.delegated.claude.md +14 -5
  142. package/agent-assets/skills/mail/SKILL.delegated.codex.md +8 -4
  143. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +8 -4
  144. package/agent-assets/skills/mail/references/api.md +4 -2
  145. package/agent-assets/skills/mail/references/providers.md +1 -1
  146. package/agent-assets/skills/managed-tasks/SKILL.md +9 -9
  147. package/agent-assets/skills/managed-tasks/references/errors.md +9 -6
  148. package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +1 -1
  149. package/agent-assets/skills/management-policy/SKILL.md +32 -31
  150. package/agent-assets/skills/management-policy/curation.json +1 -1
  151. package/agent-assets/skills/management-policy/references/policy-workflow.md +9 -9
  152. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
  153. package/agent-assets/skills/notify/SKILL.md +4 -4
  154. package/agent-assets/skills/notify/references/priority.md +9 -4
  155. package/agent-assets/skills/notion/SKILL.delegated.claude.md +1 -1
  156. package/agent-assets/skills/notion/SKILL.delegated.codex.md +1 -1
  157. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +1 -1
  158. package/agent-assets/skills/notion/SKILL.native.claude.md +10 -6
  159. package/agent-assets/skills/notion/SKILL.native.codex.md +9 -4
  160. package/agent-assets/skills/notion/SKILL.native.gemini.md +9 -4
  161. package/agent-assets/skills/observations/SKILL.md +24 -8
  162. package/agent-assets/skills/project-doc/SKILL.md +1 -1
  163. package/agent-assets/skills/project-doc/curation.json +3 -3
  164. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
  165. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
  166. package/agent-assets/skills/reading/SKILL.md +10 -0
  167. package/agent-assets/skills/reading/references/reading-taste.md +2 -2
  168. package/agent-assets/skills/roadmap/SKILL.md +5 -5
  169. package/agent-assets/skills/roadmap/curation.json +1 -1
  170. package/agent-assets/skills/roadmap/references/api.md +7 -7
  171. package/agent-assets/skills/roadmap/references/cross-check.md +15 -8
  172. package/agent-assets/skills/roadmap/references/migration.md +4 -4
  173. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
  174. package/agent-assets/skills/schedule/SKILL.md +42 -34
  175. package/agent-assets/skills/schedule/references/batch.md +2 -2
  176. package/agent-assets/skills/schedule/references/errors.md +7 -4
  177. package/agent-assets/skills/schedule/references/model-selection.md +3 -3
  178. package/agent-assets/skills/schedule/references/recurrence-rule.md +1 -1
  179. package/agent-assets/skills/scheduled-managed-task/SKILL.md +46 -36
  180. package/agent-assets/skills/today/SKILL.md +9 -9
  181. package/agent-assets/skills/today/curation.json +3 -3
  182. package/agent-assets/skills/today/references/agent-plan-lifecycle.md +6 -5
  183. package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
  184. package/agent-assets/skills/user-interview/SKILL.md +12 -9
  185. package/agent-assets/skills/user-interview/references/op-briefing.md +2 -2
  186. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +8 -0
  187. package/agent-assets/skills/user-profile/SKILL.md +17 -17
  188. package/agent-assets/skills/user-profile/curation.json +2 -2
  189. package/agent-assets/skills/user-profile/references/character-preferences.md +2 -2
  190. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
  191. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +6 -6
  192. package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -4
  193. package/agent-assets/system-prompts/routine-fetch-window.md +22 -12
  194. package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +4 -2
  195. package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +4 -2
  196. package/agent-assets/task-flows/_partials/capture-user-info.md +2 -2
  197. package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +1 -1
  198. package/agent-assets/task-flows/_partials/dm-intent.project.md +9 -9
  199. package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +3 -2
  200. package/agent-assets/task-flows/_partials/notion-acquire.notion.md +10 -5
  201. package/agent-assets/task-flows/browser_task.md +84 -0
  202. package/agent-assets/task-flows/github.assigned.md +1 -1
  203. package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
  204. package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
  205. package/agent-assets/task-flows/knowledge.import.md +14 -14
  206. package/agent-assets/task-flows/message.received.dm.md +9 -4
  207. package/agent-assets/task-flows/message.received.dm_first.md +3 -3
  208. package/agent-assets/task-flows/routine.custom.md +3 -3
  209. package/agent-assets/task-flows/routine.evening_review.md +8 -8
  210. package/agent-assets/task-flows/routine.fetch_window.md +2 -2
  211. package/agent-assets/task-flows/routine.hourly_check.md +16 -12
  212. package/agent-assets/task-flows/routine.monthly_review.md +21 -21
  213. package/agent-assets/task-flows/routine.morning_routine_journal.md +119 -97
  214. package/agent-assets/task-flows/routine.morning_routine_today.md +43 -43
  215. package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
  216. package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
  217. package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
  218. package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
  219. package/agent-assets/task-flows/routine.roadmap_refresh.md +10 -10
  220. package/agent-assets/task-flows/routine.today_refresh.md +4 -4
  221. package/agent-assets/task-flows/routine.user_profile_sweep.md +10 -10
  222. package/agent-assets/task-flows/routine.weekly_review.md +93 -24
  223. package/agent-assets/task-flows/schedule.approaching.md +0 -1
  224. package/agent-assets/task-flows/scheduled.dm.md +5 -5
  225. package/agent-assets/task-flows/scheduled.task.md +4 -4
  226. package/agent-assets/task-flows/setup.initial.md +21 -21
  227. package/agent-assets/task-flows/setup.update.md +2 -2
  228. package/agent-assets/templates/README.md +27 -20
  229. package/agent-assets/templates/_index.md +42 -26
  230. package/agent-assets/templates/_manifest.json +34 -99
  231. package/agent-assets/templates/{user → identity}/_index.md +1 -1
  232. package/agent-assets/templates/{user → identity}/profile.md +2 -2
  233. package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +1 -1
  234. package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
  235. package/agent-assets/templates/policies/_index.md +21 -0
  236. package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
  237. package/agent-assets/templates/{rules → policies}/journal-format.md +5 -5
  238. package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
  239. package/agent-assets/templates/{rules → policies}/management.md +3 -3
  240. package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
  241. package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
  242. package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
  243. package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
  244. package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
  245. package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
  246. package/bin/aitne.mjs +13 -4
  247. package/package.json +5 -4
  248. package/scripts/commands/doctor.mjs +14 -8
  249. package/scripts/commands/run-now.mjs +6 -21
  250. package/scripts/lib/ports.d.mts +27 -0
  251. package/scripts/lib/ports.mjs +36 -0
  252. package/scripts/lib/read-api-token.mjs +176 -0
  253. package/scripts/start.mjs +2 -1
  254. package/agent-assets/docs/features/lifestyle/travel-time.md +0 -58
  255. package/agent-assets/skills/gmail-lifestyle/references/travel-time-api.md +0 -59
  256. package/agent-assets/skills/schedule/references/recurring.md +0 -185
  257. package/agent-assets/templates/context-index.md +0 -42
  258. package/agent-assets/templates/rules/_index.md +0 -19
  259. /package/agent-assets/templates/{user → identity}/expertise.md +0 -0
  260. /package/agent-assets/templates/{user → identity}/goals.md +0 -0
  261. /package/agent-assets/templates/{user → identity}/people.md +0 -0
  262. /package/agent-assets/templates/{user → identity}/personal.md +0 -0
  263. /package/agent-assets/templates/{user → identity}/work.md +0 -0
  264. /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
  265. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
  266. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
  267. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
  268. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
  269. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
  270. /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
  271. /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
  272. /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
  273. /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
  274. /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
  275. /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
  276. /package/agent-assets/templates/{today.md → state/today.md} +0 -0
@@ -272,7 +272,7 @@ voice carries the whole message.
272
272
  - Tasks list: cap 10, append `...and N more` if over.
273
273
  - Overnight: cap 5 per category (mail / dm / calendar).
274
274
  - No internal names ("Morning Routine", "Agent Plan",
275
- "scheduled.dm", "today.md") in user-facing text.
275
+ "scheduled.dm", "state/today.md") in user-facing text.
276
276
  - Forbidden openers across all variants: "Morning briefing —",
277
277
  "Morning briefing delivered", "Here's your day".
278
278
 
@@ -305,7 +305,7 @@ occurring outgoing-DM opportunities to slip a question in without it
305
305
  feeling cold. Use the **user-interview** skill's "Operation 3 — Latent
306
306
  piggyback" recipe:
307
307
 
308
- 1. GET `agent/profile-questions.md` ## In Progress. If no entry has
308
+ 1. GET `state/profile-questions.md` ## In Progress. If no entry has
309
309
  `state=latent`, skip this section entirely.
310
310
  1.5 **Slot-filled pre-check.** GET
311
311
  `/api/profile-questions/slot-filled?path=<target>&section=<section?>&anchor=<anchor?>`.
@@ -352,7 +352,7 @@ recipe:
352
352
 
353
353
  ### Step 1 — Fire-time abort (Layer 3)
354
354
 
355
- GET `agent/profile-questions.md` and the row's `<target_path>`. Call:
355
+ GET `state/profile-questions.md` and the row's `<target_path>`. Call:
356
356
 
357
357
  ```bash
358
358
  curl -s "http://localhost:8321/api/profile-questions/slot-filled?path=<target>&section=<section?>&anchor=<anchor?>"
@@ -623,12 +623,12 @@ handled in one read-then-branch sequence:
623
623
  ```
624
624
 
625
625
  `<confirm_decline_marker.path>` is the value from `taskContext`
626
- (e.g. `agent/journal.md`). The endpoint accepts the path with or
626
+ (e.g. `journal/agent.md`). The endpoint accepts the path with or
627
627
  without the `.md` suffix.
628
628
 
629
629
  2. Branch on status + section presence:
630
630
  - **status=404 (file missing).** Some marker paths
631
- (`agent/journal`) support `PUT` for first-write creation via the
631
+ (`journal/agent`) support `PUT` for first-write creation via the
632
632
  daemon's CREATE_ONLY_PUT allowlist. PUT a minimal file
633
633
  containing an H1, the section header, and the new marker line:
634
634
  ```bash
@@ -26,7 +26,7 @@ message the user reads — plan the closing turn accordingly.
26
26
  - **Non-empty only when** the task's job is to deliver a short message
27
27
  AND you did not call `/api/notify`. Write the message itself, not a
28
28
  meta-report about it.
29
- - **Never name internal mechanisms** in the final text: no `today.md`,
29
+ - **Never name internal mechanisms** in the final text: no `state/today.md`,
30
30
  `## Agent Plan`, `## Agent Log`, `did-not-fire`, "DM sent", "logged",
31
31
  "closed the row" — those go in Agent Log only. The same rule applies
32
32
  in whatever language you respond to the user; no status-word openers
@@ -89,7 +89,7 @@ confirmation.
89
89
  off 30 s and retry up to 3 times. If still held, **skip the
90
90
  roadmap flip entirely** — the next refresh reconciles — and
91
91
  proceed to Step 3 below so the task still executes.
92
- 2. `GET /api/context/roadmap` and locate the matching
92
+ 2. `GET /api/context/plans/roadmap` and locate the matching
93
93
  `### Scheduled: ... (task #<id>) <!-- id: rm-... -->` entry.
94
94
  Flip only its Status line to `running` via `PATCH`
95
95
  `section=agent_action_plan` `mode=replace` (include
@@ -137,5 +137,5 @@ confirmation.
137
137
  ### Step 5: Follow-up (optional)
138
138
  9. Register follow-up wake-ups if the action produced new work (schedule skill).
139
139
  10. For additional context if needed:
140
- - GET /api/context/roadmap — long-term goals and milestones
141
- - GET /api/context/projects/_active — active projects summary
140
+ - GET /api/context/plans/roadmap — long-term goals and milestones
141
+ - GET /api/context/plans/projects/_active — active projects summary
@@ -1,13 +1,13 @@
1
1
  {context}
2
2
 
3
- ## Task: Initial Setup — Create rules/management.md
3
+ ## Task: Initial Setup — Create policies/management.md
4
4
 
5
5
  The dashboard wizard already captured `settings.primary_language` and
6
6
  `settings.vault_mode`. Steps 4–6 (Mail / Calendar / Note) configured
7
7
  the user's integrations. Your role:
8
8
  derive an initial Source-of-Truth table from those integrations,
9
9
  confirm it with the user, gather two remaining preferences, and
10
- generate rules/management.md.
10
+ generate policies/management.md.
11
11
 
12
12
  Output language: follow `<output_language_policy>`. The conversation
13
13
  matches the user's input language.
@@ -19,7 +19,7 @@ assistant messages.
19
19
  | Turn | Trigger | What you emit |
20
20
  |------|---------|---------------|
21
21
  | Turn 1 | No prior assistant message | One natural-language message: greeting + derived Source-of-Truth table + remaining questions. **No code blocks. No curl.** |
22
- | Turn 2 | The most recent prior assistant message was Turn 1 and the user has now replied | `management-rules` block **FIRST**, then optional `character` block, then silent PUT /api/context/user/profile + any user/*.md PATCHes |
22
+ | Turn 2 | The most recent prior assistant message was Turn 1 and the user has now replied | `management-rules` block **FIRST**, then optional `character` block, then silent PUT /api/context/identity/profile + any user/*.md PATCHes |
23
23
  | Turn 3+ | User requested revisions after Turn 2 | Revised `management-rules` block only (cap: 2 revision rounds). No curl writes — they already ran in Turn 2. |
24
24
 
25
25
  ### Step 0 (silent) — Derive Source-of-Truth from context tags
@@ -85,18 +85,18 @@ In this exact order:
85
85
  1. Emit the `management-rules` code block **FIRST** — the dashboard
86
86
  reveals the preview as soon as the block lands, so emitting it
87
87
  first makes visible-progress immediate. Use the template in
88
- "rules/management.md Format" below.
88
+ "policies/management.md Format" below.
89
89
 
90
90
  2. If the user stated a tone / style preference (not "no preference" /
91
91
  "skip"), emit a `character` code block immediately after — see
92
92
  "Character code block format" below. Omit the block entirely if
93
93
  they skipped.
94
- **Do NOT put communication style inside rules/management.md, and do NOT put it inside user/profile.md.**
94
+ **Do NOT put communication style inside policies/management.md, and do NOT put it inside identity/profile.md.**
95
95
  Tone / style / voice / formality / emoji / language preferences
96
96
  live in the `character` runtime-config field only.
97
97
 
98
- 3. Silently PUT /api/context/user/profile using the
99
- "user/profile.md Format" template below. Working hours and quiet
98
+ 3. Silently PUT /api/context/identity/profile using the
99
+ "identity/profile.md Format" template below. Working hours and quiet
100
100
  hours pre-populate with defaults (Weekdays 09:00–18:00,
101
101
  Quiet hours 22:00–08:00) — do not ask. Fill Platforms from the
102
102
  **derived Source-of-Truth table** (Step 0). Leave Identity blank —
@@ -108,18 +108,18 @@ In this exact order:
108
108
 
109
109
  | Fact type | File |
110
110
  |-----------|------|
111
- | Named colleagues, family, friends | user/people.md |
112
- | Current company, role specifics, ongoing projects | user/work.md |
113
- | Specific frameworks, years of experience | user/expertise.md |
114
- | Long-term goals, aspirations | user/goals.md |
115
- | Hobbies, lifestyle habits, dietary notes | user/personal.md |
111
+ | Named colleagues, family, friends | identity/people.md |
112
+ | Current company, role specifics, ongoing projects | identity/work.md |
113
+ | Specific frameworks, years of experience | identity/expertise.md |
114
+ | Long-term goals, aspirations | identity/goals.md |
115
+ | Hobbies, lifestyle habits, dietary notes | identity/personal.md |
116
116
 
117
117
  See the user-profile skill for the read-before-write PATCH recipe
118
118
  and the `section_not_found` → `append_to_file` first-write
119
- fallback. (user/profile.md `## Expertise` keeps a one-line summary
120
- only — detailed framework history goes to user/expertise.md.)
119
+ fallback. (identity/profile.md `## Expertise` keeps a one-line summary
120
+ only — detailed framework history goes to identity/expertise.md.)
121
121
 
122
- **Important**: Do NOT curl-write rules/management.md yourself. The
122
+ **Important**: Do NOT curl-write policies/management.md yourself. The
123
123
  dashboard persists it via `POST /setup/save-rules` when the user
124
124
  clicks Save & Finish. Do NOT PATCH /api/config/character either —
125
125
  the dashboard stages the `character` block and writes it atomically
@@ -132,7 +132,7 @@ re-emit it. Hard cap: **at most 2 revision rounds** total. Do NOT
132
132
  re-run the Turn-2 curl writes — they already persisted. The dashboard
133
133
  saves the revised rules block on Save & Finish.
134
134
 
135
- ### rules/management.md Format
135
+ ### policies/management.md Format
136
136
 
137
137
  Output language: section headers stay English (the daemon parses
138
138
  them); descriptive bullets under `## Autonomy Levels`, `## Notification
@@ -140,7 +140,7 @@ Rules`, `## Schedule`, `## Project Management` follow `<settings
140
140
  primary_language>`. Also stay English: `## Agent Identity` field
141
141
  labels (`- AI name:`, `- WhatsApp label:`), Source-of-Truth table
142
142
  headers and Domain labels, and product/brand cells (`Google
143
- Calendar`, `Obsidian`, `Notion`, `today.md`, `projects/*.md`).
143
+ Calendar`, `Obsidian`, `Notion`, `state/today.md`, `projects/*.md`).
144
144
 
145
145
  Fill the Source of Truth table from the rows you confirmed in Turn 1.
146
146
  Use today's YYYY-MM-DD for `updated` (the date below is an example).
@@ -170,7 +170,7 @@ updated: 2026-04-21
170
170
  - today.md updates: Autonomous
171
171
  - Notifications: Autonomous (within rules)
172
172
  - External service operations: Confirm with user
173
- - rules/management.md changes: Always confirm
173
+ - policies/management.md changes: Always confirm
174
174
 
175
175
  ## Notification Rules
176
176
  - Quiet hours: 22:00–08:00 (default — adjustable in Settings)
@@ -202,9 +202,9 @@ most one block per turn.
202
202
  Speak casually. Tight bullets. No emojis.
203
203
  ```
204
204
 
205
- ### user/profile.md Format
205
+ ### identity/profile.md Format
206
206
 
207
- When you PUT /api/context/user/profile, write the full file in this
207
+ When you PUT /api/context/identity/profile, write the full file in this
208
208
  shape. Use today's YYYY-MM-DD for `updated`. Do not omit
209
209
  `## Notification Preferences` — Morning Routine reads it directly.
210
210
 
@@ -214,7 +214,7 @@ produced malformed bodies in this flow (server saw literal `@-` and
214
214
  returned 500).
215
215
 
216
216
  ```bash
217
- curl -s -X PUT http://localhost:8321/api/context/user/profile \
217
+ curl -s -X PUT http://localhost:8321/api/context/identity/profile \
218
218
  -H 'Content-Type: application/json' \
219
219
  -d '{"content": "---\ntype: user\nowner: shared\nupdated: 2026-04-23\n---\n# User\n\n## Identity\n\n## Work Pattern\n- Working hours: Weekdays 09:00–18:00\n\n## Platforms\n- Schedule: Google Calendar\n- Notes: Obsidian\n- Projects: Notion\n\n## Expertise\n\n## Notification Preferences\n- Quiet hours: 22:00–08:00\n\n## Learned Context\n\n## Raw Signals\n"}'
220
220
  ```
@@ -12,7 +12,7 @@ Output language: follow `<output_language_policy>` (this is a DM-style turn —
12
12
  2. Ask the user which part they'd like to change, presenting these options:
13
13
  - **Source of Truth** — Change tools
14
14
  - **Notification Rules** — Notification timing and methods
15
- - **Character (tone / style / voice)** — Update the `character` runtime-config field, emitted as a ```character``` code block (NOT `rules/management.md`, NOT `user/profile.md`)
15
+ - **Character (tone / style / voice)** — Update the `character` runtime-config field, emitted as a ```character``` code block (NOT `policies/management.md`, NOT `identity/profile.md`)
16
16
  - **Autonomy Levels** — Agent decision scope
17
17
  - **Schedule** — Working hours
18
18
  - **Project Management** — Preferences for how the agent should handle your projects
@@ -45,7 +45,7 @@ not part of the wizard's editable surface, and stripping them silently
45
45
  breaks downstream features:
46
46
 
47
47
  - **`## Agent Identity`** — populated by the daemon from `agentDisplayName`. Re-emit it as-is or omit it (the server upserts it on save).
48
- - **`## Active Policies`** — a static wikilink to `rules/policies/_index.md` placed by skeleton seeding. Owned by the management-policy capture flow (the wizard is read-only here). If it is missing from the current rules (legacy installs), do NOT invent it; the next skeleton run will add it.
48
+ - **`## Active Policies`** — a static wikilink to `policies/management-captures/_index.md` placed by skeleton seeding. Owned by the management-policy capture flow (the wizard is read-only here). If it is missing from the current rules (legacy installs), do NOT invent it; the next skeleton run will add it.
49
49
 
50
50
  The same applies to any other section the wizard does not explicitly
51
51
  ask the user about — when in doubt, copy it through unchanged.
@@ -1,9 +1,11 @@
1
1
  # agent-assets/templates/
2
2
 
3
3
  Source templates used by the daemon at **fresh install** time to populate
4
- `~/.personal-agent/context/` with the B-007 vault layout. The daemon copies
5
- system / pass-through assets from here directly. User-facing scaffolds that
6
- must follow `primary_language` are seeded by the `setup.initial` agent flow.
4
+ `~/.personal-agent/context/` with the CONTEXT_VAULT_REDESIGN six-class
5
+ layout (`identity/`, `state/`, `plans/`, `journal/`, `knowledge/`,
6
+ `policies/`). The daemon copies system / pass-through assets from here
7
+ directly. User-facing scaffolds that must follow `primary_language` are
8
+ seeded by the `setup.initial` agent flow.
7
9
 
8
10
  **Language policy (B-007 §3 P6, unified through
9
11
  `docs/design/appendices/output-language-policy.md`)** — template source
@@ -11,12 +13,13 @@ lives here in English. The runtime rule is now carried by the
11
13
  `<output_language_policy>` block emitted by ContextBuilder, so every
12
14
  flow that writes a scaffold or refreshes one of these files follows one
13
15
  shared policy reference instead of restating language wording per flow.
14
- System prose templates (`rules/redaction.md`, `context-index.md`,
15
- `agent/journal.md`, `.base` files) stay English regardless of locale
16
- (Policy A). User-facing scaffolds (`today.md`, `roadmap.md`,
17
- `_index.md`, `routines/*.md`, `rules/journal-format.md`,
18
- `rules/journal-export.md`, `user/profile.md`) keep the template H2/H3
19
- headers (skeleton, Policy B) and their body is filled in
16
+ System prose templates (`policies/redaction.md`, `journal/agent.md`,
17
+ `.base` files, and the reconciler-block portion of `_index.md`) stay
18
+ English regardless of locale (Policy A). User-facing scaffolds
19
+ (`state/today.md`, `plans/roadmap.md`, `_index.md`,
20
+ `policies/routines/*.md`, `policies/journal-format.md`,
21
+ `policies/journal-export.md`, `identity/profile.md`) keep the template
22
+ H2/H3 headers (skeleton, Policy B) and their body is filled in
20
23
  `primary_language` by the setup conversation before `save-rules`
21
24
  finalizes setup.
22
25
 
@@ -30,10 +33,10 @@ Two rendering paths:
30
33
  Files prefixed `_` (e.g. `_active.base`) are Obsidian sidebar-sort
31
34
  conventions — the leading underscore floats them to the top.
32
35
 
33
- **`today.md` and `roadmap.md`** are shape-canary templates. They are
34
- copied verbatim by `skeleton.ts:ensureSkeletonFiles` when the templates
35
- tree is reachable; when the tree is unreachable, `skeleton.ts` falls
36
- back to an inline literal in `FALLBACK_PLACEHOLDERS` that is kept
36
+ **`state/today.md` and `plans/roadmap.md`** are shape-canary templates.
37
+ They are copied verbatim by `skeleton.ts:ensureSkeletonFiles` when the
38
+ templates tree is reachable; when the tree is unreachable, `skeleton.ts`
39
+ falls back to an inline literal in `FALLBACK_PLACEHOLDERS` that is kept
37
40
  byte-equal to these template files. A unit test
38
41
  (`packages/daemon/src/core/skeleton.test.ts:"shape canary ..."`)
39
42
  asserts this equality on every CI run, so a PR that updates one path
@@ -49,7 +52,7 @@ inventory lives at `_manifest.json` (auto-generated) alongside the
49
52
  templates. When a template's format changes:
50
53
 
51
54
  1. **Bump `template_version` in the template file's frontmatter** (e.g.
52
- 1 → 2 when `rules/management.md` gains a new required section).
55
+ 1 → 2 when `policies/management.md` gains a new required section).
53
56
  2. **Regenerate `_manifest.json`** so the `version` entry matches. A
54
57
  unit test (`template-versions.test.ts:"shipped manifest consistency"`)
55
58
  fails the build if the two disagree.
@@ -75,9 +78,10 @@ templates. When a template's format changes:
75
78
 
76
79
  ### Files excluded from versioning
77
80
 
78
- - `today.md`, `roadmap.md`, `projects/_active.base` — no frontmatter to
79
- carry the marker. These files are shape canaries / Obsidian view
80
- configs that evolve through schema validation, not template diff.
81
+ - `state/today.md`, `plans/roadmap.md`, `plans/projects/_active.base` —
82
+ no frontmatter to carry the marker. These files are shape canaries /
83
+ Obsidian view configs that evolve through schema validation, not
84
+ template diff.
81
85
  - `README.md` (this file) — documentation, not a template.
82
86
 
83
87
  Bump `manifestVersion` in `_manifest.json` only when the manifest
@@ -85,8 +89,11 @@ schema itself changes (e.g. a new per-entry field). Individual
85
89
  template-version bumps leave `manifestVersion` alone.
86
90
 
87
91
  See `docs/design/06-memory.md` and `docs/design/12-configuration.md` for the
88
- fresh-install flow and vault layout. The `rules/management.md` template
92
+ fresh-install flow and vault layout. The `policies/management.md` template
89
93
  follows the structured `schema_version: 3` registry specified in
90
94
  `docs/design/21-management-registry-and-entities.md` (A. SoT bindings,
91
- B. Managed tasks, C. Active-Policies stub) the v2 "Default Schedules"
92
- section has been retired (§21 §8.10); do not reintroduce it.
95
+ B. Managed tasks, C. Active-Policies stub). `Default Schedules` is not a
96
+ static template section: the daemon's default-schedules reconciler appends
97
+ a read-only `## Default Schedules` mirror of `recurring_schedules` at
98
+ runtime (§21 §8.10), so it is intentionally absent from this seed — do
99
+ not add it here.
@@ -1,39 +1,55 @@
1
1
  ---
2
2
  type: index
3
3
  owner: shared
4
- updated: 2026-04-22
5
- template_version: 1
4
+ updated: 2026-05-25
5
+ template_version: 2
6
6
  ---
7
7
  # Aitne Vault
8
8
 
9
- This directory is shared by the agent and me. The agent writes most of it;
10
- I can edit any file and my edits are preserved (see `rules/management.md`
11
- for conflict handling).
9
+ This directory is shared by the agent and me. Six top-level folders sit
10
+ under this root; each carries a single authority/lifecycle contract so I
11
+ (and the agent) can always tell which kind of file lives where. The
12
+ agent writes most of it; I can edit any file and my edits are preserved
13
+ (see `policies/management.md` for conflict handling).
12
14
 
13
15
  ## Where things live
14
16
 
15
- - **About me** → `user/` (profile, people, work, expertise, personal, goals)
16
- - **Today / Roadmap** → root-level `today.md` and `roadmap.md`
17
- - **Yesterday snapshot** → yesterday.md appears after the first morning
18
- rotation and is replaced by the next one
19
- - **Projects** → `projects/`; project notes use the projects/<slug>.md
20
- naming pattern. See `projects/_index.md` or open `projects/_active.base`
21
- in Obsidian
22
- - **Daily archives** → `daily/` files named by date (synthesized journal)
23
- - **Weekly / Monthly reviews** → `weekly/`, `monthly/`
24
- - **Agent self-reflection** → `agent/journal.md` (internal; never pushed
25
- as a notification)
26
- - **Rules & policies** → `rules/` (how the agent should behave — edited by
27
- either of us)
28
- - **Routines** → `routines/` (per-cadence check-list rulebooks)
29
- - **Dump bucket** → `inbox/` (paste anything here; I'll triage on next
30
- morning routine)
17
+ - **About me** → `identity/` (profile, people, work, expertise, personal, goals)
18
+ - **Today / Yesterday** → `state/today.md`, `state/yesterday.md`
19
+ - **Roadmap & projects** → `plans/roadmap.md`, `plans/projects/<slug>.md`
20
+ (open `plans/projects/_active.base` in Obsidian for the active list)
21
+ - **Inbox dumps** → `state/inbox/` (paste anything here; I'll triage on
22
+ the next morning routine)
23
+ - **Agent scratch** → `state/scratch/` (48h-TTL working area; not
24
+ durable)
25
+ - **Activity views** → `state/activity/` (90-day reconciler outputs)
26
+ - **Profile-question queue** → `state/profile-questions.md`
27
+ - **Daily / Weekly / Monthly journals** → `journal/daily/`,
28
+ `journal/weekly/`, `journal/monthly/` (date-named, append-only)
29
+ - **Per-repo journals** → `journal/repos/<slug>/<date>.md`
30
+ - **Agent self-reflection** → `journal/agent.md` (decision log,
31
+ append-only, never DM'd)
32
+ - **Wiki workspaces** → `knowledge/wiki/<workspace>/` (internal vaults
33
+ live here; external Obsidian vaults stay external)
34
+ - **Per-repo overviews** → `knowledge/repos/<slug>/overview.md`
35
+ - **Dossiers** → `knowledge/dossiers/` (accumulated agent research)
36
+ - **Management-registry entities** → `knowledge/entities/<domain>/<type>/<slug>.md`
37
+ - **Rules & policies** → `policies/` (`management.md`, `mcp.md`,
38
+ `redaction.md`, `journal-format.md`, `journal-export.md`,
39
+ `integrations.md`)
40
+ - **Routines** → `policies/routines/` (per-cadence rulebooks)
41
+ - **User skills** → `policies/skills/<slug>/SKILL.md`
42
+ - **Policy captures** → `policies/management-captures/`
31
43
 
32
44
  ## How the agent reads/writes this
33
45
 
34
- All writes go through the context API (locked + snapshotted). Read: direct.
35
- `Edit`/`Write` tools are not available to the agent — the API is the only
36
- chokepoint.
46
+ All writes go through the context API (locked + snapshotted). Read:
47
+ direct. `Edit`/`Write` tools are not available to the agent — the API
48
+ is the only chokepoint.
37
49
 
38
- This file is human-readable navigation. The agent's canonical file catalog
39
- is `context-index.md`, maintained from the filesystem.
50
+ The block below is maintained by the daemon reconciler. Edits inside
51
+ the `<!-- reconciler-section -->` markers are overwritten on the next
52
+ run. Anything outside the markers is yours and is preserved.
53
+
54
+ <!-- reconciler-section -->
55
+ <!-- /reconciler-section -->
@@ -1,103 +1,38 @@
1
1
  {
2
- "manifestVersion": 1,
3
- "generatedAt": "2026-05-18",
4
- "notes": "Auto-generated inventory of versioned templates. Each entry's 'version' must equal the `template_version:` field in the corresponding template file's frontmatter. Bump both in the same PR. A unit test asserts this consistency.",
2
+ "manifestVersion": 2,
3
+ "generatedAt": "2026-05-25",
4
+ "notes": "Auto-generated inventory of versioned templates. Each entry's 'version' must equal the `template_version:` field in the corresponding template file's frontmatter. Bump both in the same PR. A unit test asserts this consistency. Layout rebased onto the CONTEXT_VAULT_REDESIGN six-class structure (identity/, state/, plans/, journal/, knowledge/, policies/).",
5
5
  "templates": {
6
- "_index.md": {
7
- "version": 1
8
- },
9
- "agent/journal.md": {
10
- "version": 1
11
- },
12
- "agent/profile-questions.md": {
13
- "version": 1
14
- },
15
- "context-index.md": {
16
- "version": 1
17
- },
18
- "dossiers/_index.md": {
19
- "version": 1
20
- },
21
- "dossiers/evening.md": {
22
- "version": 1
23
- },
24
- "dossiers/hourly.md": {
25
- "version": 1
26
- },
27
- "dossiers/monthly.md": {
28
- "version": 1
29
- },
30
- "dossiers/morning.md": {
31
- "version": 1
32
- },
33
- "dossiers/roadmap.md": {
34
- "version": 1
35
- },
36
- "dossiers/weekly.md": {
37
- "version": 1
38
- },
39
- "projects/_index.md": {
40
- "version": 1
41
- },
42
- "routines/_index.md": {
43
- "version": 1
44
- },
45
- "routines/evening.md": {
46
- "version": 1
47
- },
48
- "routines/hourly.md": {
49
- "version": 1
50
- },
51
- "routines/monthly.md": {
52
- "version": 1
53
- },
54
- "routines/morning.md": {
55
- "version": 1
56
- },
57
- "routines/weekly.md": {
58
- "version": 1
59
- },
60
- "rules/_index.md": {
61
- "version": 2
62
- },
63
- "rules/journal-export.md": {
64
- "version": 1
65
- },
66
- "rules/journal-format.md": {
67
- "version": 3
68
- },
69
- "rules/management.md": {
70
- "version": 2
71
- },
72
- "rules/mcp.md": {
73
- "version": 1
74
- },
75
- "rules/policies/_index.md": {
76
- "version": 2
77
- },
78
- "rules/redaction.md": {
79
- "version": 1
80
- },
81
- "user/_index.md": {
82
- "version": 1
83
- },
84
- "user/expertise.md": {
85
- "version": 2
86
- },
87
- "user/goals.md": {
88
- "version": 2
89
- },
90
- "user/people.md": {
91
- "version": 2
92
- },
93
- "user/personal.md": {
94
- "version": 2
95
- },
96
- "user/profile.md": {
97
- "version": 2
98
- },
99
- "user/work.md": {
100
- "version": 2
101
- }
6
+ "_index.md": { "version": 2 },
7
+ "identity/_index.md": { "version": 1 },
8
+ "identity/expertise.md": { "version": 2 },
9
+ "identity/goals.md": { "version": 2 },
10
+ "identity/people.md": { "version": 2 },
11
+ "identity/personal.md": { "version": 2 },
12
+ "identity/profile.md": { "version": 2 },
13
+ "identity/work.md": { "version": 2 },
14
+ "journal/agent.md": { "version": 1 },
15
+ "knowledge/dossiers/_index.md": { "version": 1 },
16
+ "knowledge/dossiers/evening.md": { "version": 1 },
17
+ "knowledge/dossiers/hourly.md": { "version": 1 },
18
+ "knowledge/dossiers/monthly.md": { "version": 1 },
19
+ "knowledge/dossiers/morning.md": { "version": 1 },
20
+ "knowledge/dossiers/roadmap.md": { "version": 1 },
21
+ "knowledge/dossiers/weekly.md": { "version": 1 },
22
+ "plans/projects/_index.md": { "version": 1 },
23
+ "policies/_index.md": { "version": 2 },
24
+ "policies/journal-export.md": { "version": 1 },
25
+ "policies/journal-format.md": { "version": 3 },
26
+ "policies/management-captures/_index.md": { "version": 2 },
27
+ "policies/management.md": { "version": 2 },
28
+ "policies/mcp.md": { "version": 1 },
29
+ "policies/redaction.md": { "version": 1 },
30
+ "policies/routines/_index.md": { "version": 1 },
31
+ "policies/routines/evening.md": { "version": 1 },
32
+ "policies/routines/hourly.md": { "version": 1 },
33
+ "policies/routines/monthly.md": { "version": 1 },
34
+ "policies/routines/morning.md": { "version": 1 },
35
+ "policies/routines/weekly.md": { "version": 1 },
36
+ "state/profile-questions.md": { "version": 1 }
102
37
  }
103
38
  }
@@ -13,4 +13,4 @@ template_version: 1
13
13
  | `work.md` | Workplace, team, tech stack |
14
14
  | `expertise.md` | Domains, tools, skills |
15
15
  | `personal.md` | Hobbies, health, habits |
16
- | `goals.md` | Developmental goals (distinct from `../roadmap.md` project milestones) |
16
+ | `goals.md` | Developmental goals (distinct from `../plans/roadmap.md` project milestones) |
@@ -9,8 +9,8 @@ template_version: 2
9
9
  # User
10
10
 
11
11
  > Primary profile injected into every session. Keep this file concise.
12
- > Detailed profile lives under `user/`.
13
- > Fetch index: `curl -s http://localhost:8321/api/context/user/_index`
12
+ > Detailed profile lives under `identity/`.
13
+ > Fetch index: `curl -s http://localhost:8321/api/context/identity/_index`
14
14
 
15
15
  ## Identity
16
16
  (To be filled during setup)
@@ -19,4 +19,4 @@ Injected into prompts through the root-level context-index.md catalog.
19
19
  | `evening.md` | `routine.evening_review` |
20
20
  | `weekly.md` | `routine.weekly_review` |
21
21
  | `monthly.md` | `routine.monthly_review` |
22
- | `roadmap.md` | `routine.roadmap_refresh` |
22
+ | `plans/roadmap.md` | `routine.roadmap_refresh` |
@@ -1,6 +1,6 @@
1
1
  filters:
2
2
  and:
3
- - file.inFolder("projects")
3
+ - file.inFolder("plans/projects")
4
4
  - state != "archived"
5
5
  views:
6
6
  - type: table
@@ -0,0 +1,21 @@
1
+ ---
2
+ type: index
3
+ owner: shared
4
+ updated: 2026-04-24
5
+ template_version: 2
6
+ ---
7
+ # Policies
8
+
9
+ Natural-language policy files the agent reads to decide HOW to act. Each
10
+ is user-editable; changes take effect at the next task-flow assembly.
11
+
12
+ | File | Purpose |
13
+ |---|---|
14
+ | `policies/management.md` | Source-of-truth bindings (where each category lives) |
15
+ | `policies/management-captures/_index.md` | Active management policies captured from conversation |
16
+ | `policies/mcp.md` | MCP usage rules (B-003) |
17
+ | `policies/journal-format.md` | Format spec for the daily synthesized journal |
18
+ | `policies/journal-export.md` | User-defined redaction / inclusion rules for B-005 |
19
+ | `policies/redaction.md` | Built-in secret patterns (English, informational) |
20
+ | `policies/routines/` | Per-cadence routine definitions read by the scheduler |
21
+ | `policies/integrations.md` | Integration mode snapshot (renderer keeps this in sync) |
@@ -9,7 +9,7 @@ template_version: 1
9
9
 
10
10
  Edit this file to control what's included when the agent mirrors your
11
11
  synthesized `daily/*.md` entries to an external backend (B-005). These
12
- rules run *on top of* the built-in `rules/redaction.md` patterns.
12
+ rules run *on top of* the built-in `policies/redaction.md` patterns.
13
13
 
14
14
  ## Inclusion defaults
15
15
 
@@ -22,7 +22,7 @@ because the human user doesn't journal by hand — but the perspective,
22
22
  voice, and content all belong to the user.
23
23
 
24
24
  Agent-side bookkeeping (action counts, internal anomalies, audit
25
- trail) lives in `agent/journal.md` — not here. If you find yourself
25
+ trail) lives in `journal/agent.md` — not here. If you find yourself
26
26
  about to log "the agent ran N tools today" or "the hourly check
27
27
  fired M times", that belongs in the agent-side log instead. Filter
28
28
  it out.
@@ -108,7 +108,7 @@ day, etc.
108
108
  **Sections deliberately NOT in the daily journal:**
109
109
 
110
110
  - ❌ Agent action counts (`agent_actions` breakdown by type). Lives
111
- in `agent/journal.md` instead — the audit-trail footprint.
111
+ in `journal/agent.md` instead — the audit-trail footprint.
112
112
  - ❌ Internal stage status, retry counts, anomalies. Same as above.
113
113
  - ❌ "The agent did X for the user" framing. The user's diary uses
114
114
  user voice; agent meta-narration belongs in the agent-side log.
@@ -129,7 +129,7 @@ day, etc.
129
129
 
130
130
  - When `settings.vault_mode` is `obsidian`, Stage B renders project /
131
131
  people references throughout the body as `[[wikilinks]]` targeting
132
- `projects/<slug>.md` or `user/people.md#<person>` (basename resolves
132
+ `projects/<slug>.md` or `identity/people.md#<person>` (basename resolves
133
133
  automatically). The `## Summary` paragraph is the primary surface,
134
134
  but data sections may also receive wikilinks where a project / person
135
135
  name appears (e.g. a meeting title containing a person's name).
@@ -140,10 +140,10 @@ day, etc.
140
140
 
141
141
  ## Redaction
142
142
 
143
- - Apply `rules/redaction.md` patterns to the entire body Stage B
143
+ - Apply `policies/redaction.md` patterns to the entire body Stage B
144
144
  authors (Summary + data sections both — Stage B owns the body, so
145
145
  redaction applies wherever sensitive content might surface).
146
- - Apply `rules/journal-export.md` user rules to the entire body.
146
+ - Apply `policies/journal-export.md` user rules to the entire body.
147
147
  - If yesterday.md frontmatter had `no_journal_export: true`, write
148
148
  `[Skipped by user request]` as the body of `## Summary` and omit
149
149
  the data sections (they would echo information the export rule is
@@ -8,8 +8,8 @@ template_version: 2
8
8
 
9
9
  Auto-maintained by the daemon's policy-index reconciler. Direct edits
10
10
  are overwritten on the next reconcile pass — to add or modify a policy,
11
- edit its `rules/policies/<slug>.md` file (or use the `management-policy`
12
- skill).
11
+ edit its `policies/management-captures/<slug>.md` file (or use the
12
+ `management-policy` skill).
13
13
 
14
14
  ## Active
15
15