@aitne-sh/aitne 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +464 -0
  3. package/agent-assets/agent-profiles/_safety.md +26 -0
  4. package/agent-assets/agent-profiles/conversational.md +33 -0
  5. package/agent-assets/agent-profiles/docs-qa.md +24 -0
  6. package/agent-assets/agent-profiles/observer.md +28 -0
  7. package/agent-assets/agent-profiles/profile-importer.md +63 -0
  8. package/agent-assets/agent-profiles/proxy.md +28 -0
  9. package/agent-assets/agent-profiles/routine.md +16 -0
  10. package/agent-assets/agent-profiles/task.md +18 -0
  11. package/agent-assets/docs/concepts/agent-day.md +88 -0
  12. package/agent-assets/docs/concepts/auth-health.md +75 -0
  13. package/agent-assets/docs/concepts/backends-and-tiers.md +126 -0
  14. package/agent-assets/docs/concepts/costs-and-quotas.md +103 -0
  15. package/agent-assets/docs/concepts/delegated-mode.md +223 -0
  16. package/agent-assets/docs/concepts/memory-model.md +118 -0
  17. package/agent-assets/docs/concepts/observations.md +80 -0
  18. package/agent-assets/docs/concepts/process-keys.md +89 -0
  19. package/agent-assets/docs/concepts/routines.md +108 -0
  20. package/agent-assets/docs/concepts/safety-and-execution.md +109 -0
  21. package/agent-assets/docs/concepts/safety-model.md +279 -0
  22. package/agent-assets/docs/concepts/skills.md +100 -0
  23. package/agent-assets/docs/features/integrations/calendar.md +92 -0
  24. package/agent-assets/docs/features/integrations/git.md +95 -0
  25. package/agent-assets/docs/features/integrations/github.md +170 -0
  26. package/agent-assets/docs/features/integrations/mail.md +106 -0
  27. package/agent-assets/docs/features/integrations/notion.md +69 -0
  28. package/agent-assets/docs/features/integrations/obsidian.md +71 -0
  29. package/agent-assets/docs/features/lifestyle/git.md +178 -0
  30. package/agent-assets/docs/features/lifestyle/reading.md +93 -0
  31. package/agent-assets/docs/features/lifestyle/receipts.md +71 -0
  32. package/agent-assets/docs/features/lifestyle/travel-bookings.md +44 -0
  33. package/agent-assets/docs/features/lifestyle/travel-time.md +52 -0
  34. package/agent-assets/docs/features/memory-files/agent-journal.md +105 -0
  35. package/agent-assets/docs/features/memory-files/projects.md +56 -0
  36. package/agent-assets/docs/features/memory-files/roadmap.md +61 -0
  37. package/agent-assets/docs/features/memory-files/schedule.md +112 -0
  38. package/agent-assets/docs/features/memory-files/today.md +73 -0
  39. package/agent-assets/docs/features/memory-files/user-profile.md +81 -0
  40. package/agent-assets/docs/features/messaging/dashboard-chat.md +93 -0
  41. package/agent-assets/docs/features/messaging/discord.md +50 -0
  42. package/agent-assets/docs/features/messaging/overview.md +111 -0
  43. package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +69 -0
  44. package/agent-assets/docs/features/messaging/slack.md +51 -0
  45. package/agent-assets/docs/features/messaging/telegram.md +63 -0
  46. package/agent-assets/docs/features/messaging/whatsapp.md +48 -0
  47. package/agent-assets/docs/features/operations/activity-and-conversations.md +105 -0
  48. package/agent-assets/docs/features/operations/approvals.md +58 -0
  49. package/agent-assets/docs/features/operations/backend-routing.md +62 -0
  50. package/agent-assets/docs/features/operations/cost-tracking.md +59 -0
  51. package/agent-assets/docs/features/operations/notifications.md +69 -0
  52. package/agent-assets/docs/features/operations/quiet-hours.md +106 -0
  53. package/agent-assets/docs/features/operations/schedule-approaching.md +60 -0
  54. package/agent-assets/docs/features/routines/custom-routines.md +101 -0
  55. package/agent-assets/docs/features/routines/evening-review.md +81 -0
  56. package/agent-assets/docs/features/routines/hourly-check.md +85 -0
  57. package/agent-assets/docs/features/routines/monthly-review.md +65 -0
  58. package/agent-assets/docs/features/routines/morning-routine.md +123 -0
  59. package/agent-assets/docs/features/routines/weekly-review.md +70 -0
  60. package/agent-assets/docs/getting-started/01-what-is-this.md +192 -0
  61. package/agent-assets/docs/getting-started/02-first-steps.md +80 -0
  62. package/agent-assets/docs/getting-started/03-what-can-this-do.md +110 -0
  63. package/agent-assets/docs/getting-started/04-first-day.md +287 -0
  64. package/agent-assets/docs/glossary.md +116 -0
  65. package/agent-assets/docs/guides/add-a-custom-routine.md +71 -0
  66. package/agent-assets/docs/guides/backup-and-restore.md +54 -0
  67. package/agent-assets/docs/guides/change-which-model-handles-x.md +47 -0
  68. package/agent-assets/docs/guides/connect-a-new-mail-account.md +59 -0
  69. package/agent-assets/docs/guides/import-knowledge-file.md +275 -0
  70. package/agent-assets/docs/guides/install-and-run.md +72 -0
  71. package/agent-assets/docs/guides/migrate-machines.md +52 -0
  72. package/agent-assets/docs/guides/pause-the-agent.md +65 -0
  73. package/agent-assets/docs/guides/reinstall-cleanly.md +52 -0
  74. package/agent-assets/docs/guides/setup-wizard.md +107 -0
  75. package/agent-assets/docs/guides/switch-default-backend.md +60 -0
  76. package/agent-assets/docs/reference/api.md +51 -0
  77. package/agent-assets/docs/reference/cli-commands.md +121 -0
  78. package/agent-assets/docs/reference/config.md +74 -0
  79. package/agent-assets/docs/reference/disallowed-tools.md +76 -0
  80. package/agent-assets/docs/reference/keyboard-shortcuts.md +39 -0
  81. package/agent-assets/docs/reference/process-keys.md +59 -0
  82. package/agent-assets/docs/reference/skills.md +50 -0
  83. package/agent-assets/docs/troubleshooting/auth-failed.md +57 -0
  84. package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +55 -0
  85. package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +54 -0
  86. package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +53 -0
  87. package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +75 -0
  88. package/agent-assets/docs/troubleshooting/observation-not-detected.md +57 -0
  89. package/agent-assets/docs/troubleshooting/quota-exhausted.md +57 -0
  90. package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +75 -0
  91. package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +71 -0
  92. package/agent-assets/optimizer-skills/skill-curation/SKILL.md +108 -0
  93. package/agent-assets/project-doc-templates/git-repo.md +21 -0
  94. package/agent-assets/project-doc-templates/project.md +38 -0
  95. package/agent-assets/skills/attach/SKILL.md +104 -0
  96. package/agent-assets/skills/context/SKILL.md +257 -0
  97. package/agent-assets/skills/context/curation.json +37 -0
  98. package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +13 -0
  99. package/agent-assets/skills/context/seeds/frontmatter-requirements.seed.json +40 -0
  100. package/agent-assets/skills/docs-search/SKILL.md +176 -0
  101. package/agent-assets/skills/external-services/SKILL.delegated.claude.md +369 -0
  102. package/agent-assets/skills/external-services/SKILL.delegated.codex.md +349 -0
  103. package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +347 -0
  104. package/agent-assets/skills/external-services/SKILL.md +371 -0
  105. package/agent-assets/skills/mail/SKILL.delegated.claude.md +284 -0
  106. package/agent-assets/skills/mail/SKILL.delegated.codex.md +261 -0
  107. package/agent-assets/skills/mail/SKILL.delegated.gemini.md +255 -0
  108. package/agent-assets/skills/mail/SKILL.md +313 -0
  109. package/agent-assets/skills/mail/references/errors.md +17 -0
  110. package/agent-assets/skills/mail/references/providers.md +40 -0
  111. package/agent-assets/skills/mail/references/query-grammar.md +24 -0
  112. package/agent-assets/skills/management-policy/SKILL.md +307 -0
  113. package/agent-assets/skills/management-policy/curation.json +13 -0
  114. package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +16 -0
  115. package/agent-assets/skills/management-task-modify/SKILL.md +202 -0
  116. package/agent-assets/skills/management-task-register/SKILL.md +330 -0
  117. package/agent-assets/skills/management-task-stop/SKILL.md +166 -0
  118. package/agent-assets/skills/notify/SKILL.md +196 -0
  119. package/agent-assets/skills/notion/SKILL.delegated.claude.md +254 -0
  120. package/agent-assets/skills/notion/SKILL.delegated.codex.md +195 -0
  121. package/agent-assets/skills/notion/SKILL.delegated.gemini.md +194 -0
  122. package/agent-assets/skills/notion/SKILL.md +86 -0
  123. package/agent-assets/skills/observations/SKILL.md +234 -0
  124. package/agent-assets/skills/observations/curation.json +13 -0
  125. package/agent-assets/skills/observations/seeds/source-namespacing.seed.json +20 -0
  126. package/agent-assets/skills/project-doc/SKILL.md +86 -0
  127. package/agent-assets/skills/project-doc/curation.json +21 -0
  128. package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +25 -0
  129. package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +20 -0
  130. package/agent-assets/skills/reading/SKILL.md +198 -0
  131. package/agent-assets/skills/reading/references/reading-taste.md +197 -0
  132. package/agent-assets/skills/receipts/SKILL.md +134 -0
  133. package/agent-assets/skills/roadmap/SKILL.md +276 -0
  134. package/agent-assets/skills/roadmap/curation.json +13 -0
  135. package/agent-assets/skills/roadmap/references/horizon-tags.md +40 -0
  136. package/agent-assets/skills/roadmap/references/preparation-timeline.md +47 -0
  137. package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +16 -0
  138. package/agent-assets/skills/schedule/SKILL.md +228 -0
  139. package/agent-assets/skills/scheduled-managed-task/SKILL.md +392 -0
  140. package/agent-assets/skills/today/SKILL.md +198 -0
  141. package/agent-assets/skills/today/curation.json +21 -0
  142. package/agent-assets/skills/today/seeds/agent-notes-flavors.seed.json +17 -0
  143. package/agent-assets/skills/today/seeds/section-shape.seed.json +17 -0
  144. package/agent-assets/skills/travel/SKILL.md +132 -0
  145. package/agent-assets/skills/travel-time/SKILL.md +149 -0
  146. package/agent-assets/skills/user-interview/SKILL.md +323 -0
  147. package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +94 -0
  148. package/agent-assets/skills/user-profile/SKILL.md +210 -0
  149. package/agent-assets/skills/user-profile/curation.json +29 -0
  150. package/agent-assets/skills/user-profile/seeds/learned-context-format.seed.json +14 -0
  151. package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +53 -0
  152. package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +27 -0
  153. package/agent-assets/task-flows/dashboard.docs_qa.md +43 -0
  154. package/agent-assets/task-flows/default.md +11 -0
  155. package/agent-assets/task-flows/git.branch.created.md +25 -0
  156. package/agent-assets/task-flows/git.lifecycle.poll.md +52 -0
  157. package/agent-assets/task-flows/git.local_ahead.stale.md +34 -0
  158. package/agent-assets/task-flows/git.merge_to_default.md +30 -0
  159. package/agent-assets/task-flows/git.project.refresh_architecture.md +100 -0
  160. package/agent-assets/task-flows/git.project.retemplate.md +73 -0
  161. package/agent-assets/task-flows/git.push.detected.md +32 -0
  162. package/agent-assets/task-flows/git.push.force_pushed.md +36 -0
  163. package/agent-assets/task-flows/git.tag.created.md +24 -0
  164. package/agent-assets/task-flows/github.assigned.md +43 -0
  165. package/agent-assets/task-flows/github.pull_request.review_requested.md +57 -0
  166. package/agent-assets/task-flows/github.security_alert.md +45 -0
  167. package/agent-assets/task-flows/github.workflow_run.failed.md +57 -0
  168. package/agent-assets/task-flows/knowledge.import.md +161 -0
  169. package/agent-assets/task-flows/message.received.dm.md +142 -0
  170. package/agent-assets/task-flows/message.received.dm_first.md +117 -0
  171. package/agent-assets/task-flows/message.received.md +14 -0
  172. package/agent-assets/task-flows/routine.custom.md +38 -0
  173. package/agent-assets/task-flows/routine.evening_review.md +323 -0
  174. package/agent-assets/task-flows/routine.hourly_check.delegated.claude.md +405 -0
  175. package/agent-assets/task-flows/routine.hourly_check.delegated.codex.md +400 -0
  176. package/agent-assets/task-flows/routine.hourly_check.delegated.gemini.md +404 -0
  177. package/agent-assets/task-flows/routine.hourly_check.md +184 -0
  178. package/agent-assets/task-flows/routine.hourly_check.triage.md +93 -0
  179. package/agent-assets/task-flows/routine.monthly_review.md +250 -0
  180. package/agent-assets/task-flows/routine.morning_routine.md +300 -0
  181. package/agent-assets/task-flows/routine.morning_routine_initial.md +184 -0
  182. package/agent-assets/task-flows/routine.roadmap_refresh.md +275 -0
  183. package/agent-assets/task-flows/routine.today_refresh.md +172 -0
  184. package/agent-assets/task-flows/routine.user_profile_sweep.md +242 -0
  185. package/agent-assets/task-flows/routine.weekly_review.md +247 -0
  186. package/agent-assets/task-flows/schedule.approaching.md +124 -0
  187. package/agent-assets/task-flows/scheduled.dm.md +391 -0
  188. package/agent-assets/task-flows/scheduled.task.md +141 -0
  189. package/agent-assets/task-flows/setup.initial.md +277 -0
  190. package/agent-assets/task-flows/setup.update.md +53 -0
  191. package/agent-assets/templates/README.md +85 -0
  192. package/agent-assets/templates/_index.md +39 -0
  193. package/agent-assets/templates/_manifest.json +103 -0
  194. package/agent-assets/templates/agent/journal.md +10 -0
  195. package/agent-assets/templates/agent/profile-questions.md +74 -0
  196. package/agent-assets/templates/context-index.md +42 -0
  197. package/agent-assets/templates/dossiers/_index.md +22 -0
  198. package/agent-assets/templates/dossiers/evening.md +23 -0
  199. package/agent-assets/templates/dossiers/hourly.md +23 -0
  200. package/agent-assets/templates/dossiers/monthly.md +23 -0
  201. package/agent-assets/templates/dossiers/morning.md +23 -0
  202. package/agent-assets/templates/dossiers/roadmap.md +23 -0
  203. package/agent-assets/templates/dossiers/weekly.md +23 -0
  204. package/agent-assets/templates/projects/_active.base +14 -0
  205. package/agent-assets/templates/projects/_index.md +29 -0
  206. package/agent-assets/templates/roadmap.md +15 -0
  207. package/agent-assets/templates/routines/_index.md +20 -0
  208. package/agent-assets/templates/routines/evening.md +22 -0
  209. package/agent-assets/templates/routines/hourly.md +30 -0
  210. package/agent-assets/templates/routines/monthly.md +25 -0
  211. package/agent-assets/templates/routines/morning.md +26 -0
  212. package/agent-assets/templates/routines/weekly.md +23 -0
  213. package/agent-assets/templates/rules/_index.md +19 -0
  214. package/agent-assets/templates/rules/journal-export.md +41 -0
  215. package/agent-assets/templates/rules/journal-format.md +61 -0
  216. package/agent-assets/templates/rules/management.md +48 -0
  217. package/agent-assets/templates/rules/mcp.md +40 -0
  218. package/agent-assets/templates/rules/policies/_index.md +22 -0
  219. package/agent-assets/templates/rules/redaction.md +30 -0
  220. package/agent-assets/templates/today.md +13 -0
  221. package/agent-assets/templates/user/_index.md +16 -0
  222. package/agent-assets/templates/user/expertise.md +7 -0
  223. package/agent-assets/templates/user/goals.md +7 -0
  224. package/agent-assets/templates/user/people.md +7 -0
  225. package/agent-assets/templates/user/personal.md +7 -0
  226. package/agent-assets/templates/user/profile.md +28 -0
  227. package/agent-assets/templates/user/work.md +7 -0
  228. package/bin/aitne.mjs +1096 -0
  229. package/package.json +78 -0
  230. package/personal-agent.mjs +39 -0
  231. package/scripts/browser.mjs +99 -0
  232. package/scripts/check-redaction-coverage.mjs +109 -0
  233. package/scripts/commands/audit.mjs +309 -0
  234. package/scripts/commands/doctor.mjs +437 -0
  235. package/scripts/commands/open.mjs +40 -0
  236. package/scripts/commands/setup.mjs +21 -0
  237. package/scripts/commands/uninstall.mjs +114 -0
  238. package/scripts/commands/update.mjs +96 -0
  239. package/scripts/commands/version.mjs +62 -0
  240. package/scripts/commands.md +0 -0
  241. package/scripts/lib/sqlite-loader.mjs +49 -0
  242. package/scripts/message-discipline-digest.mjs +535 -0
  243. package/scripts/poc/google-connector-inheritance/REPORT.md +197 -0
  244. package/scripts/poc/google-connector-inheritance/claude-sdk-probe.mjs +79 -0
  245. package/scripts/remint-roadmap-ids.mjs +257 -0
  246. package/scripts/rm-paths.mjs +22 -0
  247. package/scripts/run-node.mjs +223 -0
  248. package/scripts/smoke-obsidian-api.mjs +166 -0
  249. package/scripts/start.mjs +160 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ type: index
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Context Index
8
+
9
+ Prompt-injection hub for dossier-backed flows (B-004). This file stays in
10
+ English so review / routine prompts read a stable, backend-neutral summary.
11
+
12
+ ## Files
13
+
14
+ | Path | Purpose | Review flows | Last touched |
15
+ |---|---|---|---|
16
+ | `_index.md` | Human-readable vault navigation | - | 2026-04-17 |
17
+ | `user/profile.md` | User identity, preferences, communication style | all | 2026-04-17 |
18
+ | `today.md` | Current-day schedule, tasks, agent plan, handoff | hourly, morning, evening | 2026-04-17 |
19
+ | `roadmap.md` | Long-horizon commitments and recurring plans | evening, weekly, monthly, roadmap | 2026-04-17 |
20
+ | `projects/_index.md` | Project area index | weekly, monthly, roadmap | 2026-04-17 |
21
+ | `agent/journal.md` | Agent-internal reflection log | weekly, monthly | 2026-04-17 |
22
+ | `rules/management.md` | Source-of-truth bindings and behavioral policy | all | 2026-04-17 |
23
+ | `rules/redaction.md` | Secret and private-data handling rules | all | 2026-04-17 |
24
+ | `routines/hourly.md` | Hourly check rulebook | hourly | 2026-04-17 |
25
+ | `routines/morning.md` | Morning routine extension rulebook | morning | 2026-04-17 |
26
+ | `routines/evening.md` | Evening review extension rulebook | evening | 2026-04-17 |
27
+ | `routines/weekly.md` | Weekly review extension rulebook | weekly | 2026-04-17 |
28
+ | `routines/monthly.md` | Monthly review and roadmap planning rulebook | monthly, roadmap | 2026-04-17 |
29
+ | `dossiers/hourly.md` | Hourly carry-forward state | hourly | 2026-04-17 |
30
+ | `dossiers/morning.md` | Morning carry-forward state | morning | 2026-04-17 |
31
+ | `dossiers/evening.md` | Evening carry-forward state | evening | 2026-04-17 |
32
+ | `dossiers/weekly.md` | Weekly carry-forward state | weekly | 2026-04-17 |
33
+ | `dossiers/monthly.md` | Monthly carry-forward state | monthly | 2026-04-17 |
34
+ | `dossiers/roadmap.md` | Roadmap refresh carry-forward state | roadmap | 2026-04-17 |
35
+
36
+ ## Notes
37
+
38
+ - Keep `Review flows` short: `all`, `hourly`, `morning`, `evening`,
39
+ `weekly`, `monthly`, and `roadmap` are the flow tags the prompt loader
40
+ understands.
41
+ - When a new context file should be reviewed routinely, add one row here
42
+ with the narrowest matching flow tag.
@@ -0,0 +1,22 @@
1
+ ---
2
+ type: index
3
+ owner: agent
4
+ updated: 2026-04-22
5
+ template_version: 1
6
+ ---
7
+ # Dossiers
8
+
9
+ Per-flow context dossiers (B-004). Populated by the agent; each dossier
10
+ captures enough context to run a specific review / routine without
11
+ re-scanning the full vault.
12
+
13
+ Injected into prompts through the root-level context-index.md catalog.
14
+
15
+ | File | Process key |
16
+ |---|---|
17
+ | `hourly.md` | `routine.hourly_check` |
18
+ | `morning.md` | `routine.morning_routine`, `routine.morning_routine_initial` |
19
+ | `evening.md` | `routine.evening_review` |
20
+ | `weekly.md` | `routine.weekly_review` |
21
+ | `monthly.md` | `routine.monthly_review` |
22
+ | `roadmap.md` | `routine.roadmap_refresh` |
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Evening Review Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Hourly Check Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Monthly Review Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Morning Routine Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Roadmap Refresh Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: dossier
3
+ owner: agent
4
+ updated: 2026-04-17
5
+ template_version: 1
6
+ ---
7
+ # Weekly Review Dossier
8
+
9
+ ## Standing checklist
10
+
11
+ - (none yet)
12
+
13
+ ## Focus this period
14
+
15
+ - (none yet)
16
+
17
+ ## Open items
18
+
19
+ - (none yet)
20
+
21
+ ## Last run
22
+
23
+ - (none yet)
@@ -0,0 +1,14 @@
1
+ filters:
2
+ and:
3
+ - file.inFolder("projects")
4
+ - state != "archived"
5
+ views:
6
+ - type: table
7
+ name: "Active projects"
8
+ order: [file.name, state, next_milestone, due, updated]
9
+ sort:
10
+ - property: updated
11
+ direction: desc
12
+ - type: cards
13
+ name: "By state"
14
+ group_by: state
@@ -0,0 +1,29 @@
1
+ ---
2
+ type: index
3
+ owner: shared
4
+ updated: 2026-04-22
5
+ template_version: 1
6
+ ---
7
+ # Projects
8
+
9
+ No projects yet.
10
+
11
+ Open the _active.base file in this folder for a live table view of all active
12
+ projects (state ≠ archived, sorted by last update).
13
+
14
+ Each project lives in this folder as <slug>.md with frontmatter:
15
+
16
+ ```yaml
17
+ ---
18
+ type: project
19
+ slug: <kebab>
20
+ state: active | incubating | on-hold | archived
21
+ owner: shared
22
+ start: YYYY-MM-DD
23
+ due: YYYY-MM-DD # optional
24
+ stakeholders: [<owner>, ...]
25
+ next_milestone: "..."
26
+ tags: [project/<slug>, priority/<level>]
27
+ agent_last_synced_at: ISO-8601
28
+ ---
29
+ ```
@@ -0,0 +1,15 @@
1
+ # Roadmap
2
+ > Last synced: 1970-01-01
3
+
4
+ ## Annual Goals
5
+ - (Not yet configured)
6
+
7
+ ## Quarterly Focus
8
+ - (Not yet configured)
9
+
10
+ ## Long-term Plans
11
+
12
+ ## Agent Action Plan
13
+
14
+ ## Recurring
15
+ - Every Friday: weekly review
@@ -0,0 +1,20 @@
1
+ ---
2
+ type: index
3
+ owner: shared
4
+ updated: 2026-04-22
5
+ template_version: 1
6
+ ---
7
+ # Routines
8
+
9
+ Per-cadence check lists the agent runs when a `routine.*` ProcessKey
10
+ fires. Each file holds the full list of checks (both initial and any that
11
+ I've added later via DM). All checks are treated equally.
12
+
13
+ | File | Cadence | Process key |
14
+ |---|---|---|
15
+ | `hourly.md` | every hour | `routine.hourly_check` |
16
+ | `morning.md` | 04:00 daily | `routine.morning_routine` |
17
+ | `evening.md` | evening | `routine.evening_review` |
18
+ | `weekly.md` | Friday | `routine.weekly_review` |
19
+ | `monthly.md` | month-end | `routine.monthly_review` |
20
+ | custom/<slug>.md | user-defined cron in `routines/custom/` | `routine.custom.<slug>` |
@@ -0,0 +1,22 @@
1
+ ---
2
+ type: rule
3
+ slug: evening
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Evening Review Checks
9
+
10
+ ## Checks
11
+
12
+ ### Today → Handoff
13
+ - **Action**: scan `today.md` for open items and summarize them into
14
+ `## Handoff` so tomorrow's morning routine can pick them up
15
+
16
+ ### Tomorrow preview
17
+ - **Action**: look at the next day's calendar; note early meetings or
18
+ deadlines into `## Handoff`
19
+
20
+ ### Journal tail
21
+ - **Action**: append a 1–2 sentence note to `agent/journal.md` describing
22
+ anything surprising the agent observed today
@@ -0,0 +1,30 @@
1
+ ---
2
+ type: rule
3
+ slug: hourly
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Hourly Check
9
+
10
+ The daemon fires `routine.hourly_check` at the top of every hour. This
11
+ file is injected verbatim via `policy-files.ts`. Each `### <label>` block
12
+ is one check. All checks are equal — the agent runs them in order,
13
+ skipping any whose preconditions are not met.
14
+
15
+ ## Checks
16
+
17
+ ### Pending observations
18
+ - **Precondition**: always
19
+ - **Action**: `GET /api/observations/pending`. If ≥3 pending, consume via
20
+ the `observations` skill.
21
+
22
+ ### Upcoming schedule
23
+ - **Precondition**: always
24
+ - **Action**: scan `today.md` `## Agent Plan` for items in the next 60
25
+ min; ensure each has a `scheduled.task` row.
26
+
27
+ ## Skip conditions (applied before any check)
28
+ - Morning routine still in progress (runtime_state flag)
29
+ - Hourly check already running (atomic flag in runtime_state)
30
+ - No check has a firing precondition AND pending observations < 2
@@ -0,0 +1,25 @@
1
+ ---
2
+ type: rule
3
+ slug: monthly
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Monthly Review Checks
9
+
10
+ Fires on the last calendar day of the month. Output target:
11
+ `monthly/YYYY-MM.md`.
12
+
13
+ ## Checks
14
+
15
+ ### Aggregate the month
16
+ - **Action**: read all `weekly/*.md` from the month, plus major
17
+ `daily/*.md` items
18
+
19
+ ### Roadmap delta
20
+ - **Action**: compare current `roadmap.md` against the month's progress;
21
+ highlight completed + delayed items
22
+
23
+ ### Habit + health snapshot
24
+ - **Action**: if the user logged health/habit data in `user/personal.md`,
25
+ surface month-over-month changes (opt-in only)
@@ -0,0 +1,26 @@
1
+ ---
2
+ type: rule
3
+ slug: morning
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Morning Routine — extension checks
9
+
10
+ The fixed 04:00 pipeline (handoff → sync → observations → inbox triage →
11
+ journal synthesis → today.md → schedule → log) is owned by the task-flow
12
+ `routine.morning_routine.md`. This file is the user-editable extension
13
+ surface: anything listed here is executed in Step 8 of the pipeline, after
14
+ the built-in steps complete, unless a check is already covered above.
15
+
16
+ DM-added entries are appended here by the agent. Built-in checks are not
17
+ re-enumerated — the task-flow owns those. Delete an entry or set an
18
+ obvious precondition to turn it off.
19
+
20
+ ## Checks
21
+
22
+ ### (example — remove or edit)
23
+ - **Precondition**: weekday only
24
+ - **Added**: 2026-04-17 by setup wizard (placeholder)
25
+ - **Action**: nothing — this block exists so the section is parse-safe.
26
+ Remove or replace it with a real check.
@@ -0,0 +1,23 @@
1
+ ---
2
+ type: rule
3
+ slug: weekly
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Weekly Review Checks
9
+
10
+ Fires Friday evening (configurable). Output target:
11
+ `weekly/YYYY-Www.md`.
12
+
13
+ ## Checks
14
+
15
+ ### Aggregate the week
16
+ - **Action**: read 5 most recent `daily/*.md` files; extract progress,
17
+ decisions, open threads
18
+
19
+ ### Project status
20
+ - **Action**: for each active project, note what moved / what stalled
21
+
22
+ ### Calibrate next week
23
+ - **Action**: note 1–3 priorities for next week in the review
@@ -0,0 +1,19 @@
1
+ ---
2
+ type: index
3
+ owner: shared
4
+ updated: 2026-04-24
5
+ template_version: 2
6
+ ---
7
+ # Rules
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
+ | `management.md` | Source-of-truth bindings (where each category lives) |
15
+ | `policies/_index.md` | Active management policies captured from conversation |
16
+ | `mcp.md` | MCP usage rules (B-003) |
17
+ | `journal-format.md` | Format spec for the daily synthesized journal |
18
+ | `journal-export.md` | User-defined redaction / inclusion rules for B-005 |
19
+ | `redaction.md` | Built-in secret patterns (English, informational) |
@@ -0,0 +1,41 @@
1
+ ---
2
+ type: rule
3
+ slug: journal-export
4
+ owner: user
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Journal export rules
9
+
10
+ Edit this file to control what's included when the agent mirrors your
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.
13
+
14
+ ## Inclusion defaults
15
+
16
+ By default everything in `daily/<date>.md` is exported. Override per
17
+ section below.
18
+
19
+ ## Exclusion rules (user-editable)
20
+
21
+ List sections or patterns to strip before export:
22
+
23
+ - (none yet)
24
+
25
+ ## Per-day opt-out
26
+
27
+ If you want a specific day skipped entirely, add
28
+ `no_journal_export: true` to that day's `daily/<date>.md` frontmatter.
29
+ The agent writes the placeholder `[Skipped by user request]` instead of
30
+ a full body.
31
+
32
+ ## Target-specific overrides
33
+
34
+ When multiple journal backends are enabled (e.g., Obsidian + filesystem),
35
+ sub-sections below can scope rules to one target. Format:
36
+
37
+ ```
38
+ ### target: <obsidian | filesystem | project-root>
39
+ - rule 1
40
+ - rule 2
41
+ ```
@@ -0,0 +1,61 @@
1
+ ---
2
+ type: rule
3
+ slug: journal-format
4
+ owner: user
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # Daily journal — format template
9
+
10
+ This file controls how the agent writes `daily/YYYY-MM-DD.md` during the
11
+ 04:00 morning routine. Edit this file to change the format. The agent
12
+ reads it as a **format spec** (body structure, required/optional sections,
13
+ voice) — it does NOT follow this as code; natural-language guidance is
14
+ fine.
15
+
16
+ ## Required frontmatter fields
17
+ - `date`, `weekday`, `type: daily`, `agent_generated: true`
18
+ - `agent_last_synced_at`, `content_hash`
19
+ - `projects: [...]`, `people: [...]`, `tags: [...]`
20
+ - `calendar_events: <count>`, `messages_handled: <count>`
21
+
22
+ ## Required body sections (in order)
23
+ 1. `# YYYY-MM-DD (Weekday)` — title
24
+ 2. `## Summary` — 1 paragraph, 3–5 sentences, first-person voice
25
+ 3. `## Schedule` — actual events (from calendar + today.md), time — title,
26
+ flag attended/skipped
27
+ 4. `## What moved forward` — bullets of real progress, work + personal
28
+ separated if meaningful
29
+ 5. `## Conversations` — key DM/mail exchanges only:
30
+ `### <Name> — <channel>, HH:MM → HH:MM` with one-line summary
31
+ 6. `## Decisions` — bullets
32
+ 7. `## Open threads` — checkboxes (`- [ ] ...`)
33
+ 8. `## Tomorrow hook` — 1–2 sentences pointing to the next day's focus
34
+
35
+ ## Optional sections (include only when relevant)
36
+ - `## Meetings` — if ≥1 meeting (time — title — outcome)
37
+ - `## Reading / Learning` — books / articles / courses touched
38
+ - `## Health / mood` — ONLY if explicitly logged by user
39
+
40
+ ## Voice
41
+ - First-person ("I shipped...", "I met with..."), concise, factual
42
+ - Written in `settings.primary_language`; keep technical terms in their
43
+ original form if that's how the user writes them
44
+
45
+ ## Wikilink rendering
46
+ - When `settings.vault_mode` is `obsidian`, render project / people
47
+ references as `[[wikilinks]]` targeting `projects/<slug>.md` or
48
+ `user/people.md#<person>` (basename resolves automatically).
49
+ - When `vault_mode` is `plain`, write plain text only — no double
50
+ brackets, no link markup.
51
+
52
+ ## Redaction
53
+ - Apply `rules/redaction.md` patterns (always)
54
+ - Apply `rules/journal-export.md` user rules (always)
55
+ - If yesterday.md frontmatter had `no_journal_export: true`, write the
56
+ placeholder `[Skipped by user request]` and no body
57
+
58
+ ## Conflict behavior
59
+ - Follow B-006 content-hash protection: if the user edited the previous
60
+ day's `daily/<date>.md`, append `## Agent revision — <timestamp>` rather
61
+ than overwrite.
@@ -0,0 +1,48 @@
1
+ ---
2
+ type: rule
3
+ slug: management
4
+ owner: shared
5
+ updated: 2026-05-03
6
+ template_version: 2
7
+ schema_version: 3
8
+ ---
9
+ # Management Rules
10
+
11
+ This file is the agent's structured registry of (a) Source-of-Truth
12
+ bindings and (b) active managed tasks. It is rendered from the daemon's
13
+ DB and re-parsed when hand-edited; see
14
+ `docs/design/21-management-registry-and-entities.md` for the full spec.
15
+
16
+ ## A. Source-of-Truth bindings
17
+
18
+ | Category | SoT app | Mirror MD path | Policy | Writer |
19
+ |---|---|---|---|---|
20
+
21
+ _No SoT bindings yet — populate via the setup wizard or
22
+ `PUT /api/sot-bindings`._
23
+
24
+ ## B. Managed tasks (active only)
25
+
26
+ | ID | Intent | App | Cadence | Output path | Schedule | Last run | Last result |
27
+ |---|---|---|---|---|---|---|---|
28
+
29
+ _No managed tasks yet — register via DM (e.g. "Check Zoom daily at 10 AM")
30
+ or the dashboard's Settings → Management page._
31
+
32
+ ## C. Active Policies
33
+
34
+ Auto-maintained by the daemon (do not edit). Source files live under
35
+ `rules/policies/<slug>.md`; capture new policies via the
36
+ `management-policy` skill. Full index: [[rules/policies/_index.md]]
37
+
38
+ _No active policies yet._
39
+
40
+ ## Notes
41
+
42
+ - The agent cannot use `Edit` / `Write` tools on this file — writes go
43
+ through `/api/context/rules/management` (locked + snapshotted) or the
44
+ managed-tasks / sot-bindings API surfaces.
45
+ - This file is injected into every flow via `policy-files.ts`. Keep it
46
+ concise so prompt assembly stays cheap.
47
+ - Free prose between sections (Language, Conflict handling, etc.) is
48
+ preserved across re-renders. Tables and frontmatter stay English.
@@ -0,0 +1,40 @@
1
+ ---
2
+ type: rule
3
+ slug: mcp
4
+ owner: shared
5
+ updated: 2026-04-17
6
+ template_version: 1
7
+ ---
8
+ # MCP usage rules
9
+
10
+ This file governs how the agent uses attached Model Context Protocol
11
+ (MCP) servers. Edit to add per-MCP policies as you connect them.
12
+
13
+ ## Global policies
14
+
15
+ - Read before write. Before any MCP write call, the agent must confirm
16
+ the target with me via DM when the change is visible to others (a new
17
+ issue, a posted message, an edited doc).
18
+ - Failures are loggable events. On repeated MCP call failures, the agent
19
+ appends to `agent/journal.md` and surfaces the pattern at the next
20
+ hourly check.
21
+ - Scope to the active task. MCP calls unrelated to the current flow's
22
+ stated goal are skipped.
23
+
24
+ ## Per-server rules
25
+
26
+ Add one block per connected server:
27
+
28
+ ### monday
29
+ - Read-only unless I DM a `[monday]` directive.
30
+ - Never create boards.
31
+
32
+ ### home-assistant
33
+ - Read-only. Actuator calls require my confirmation.
34
+
35
+ ### figma
36
+ - Read designs freely. Writes create comments, never commit changes.
37
+
38
+ ### notion
39
+ - Use the database IDs configured in `settings.notionDatabaseIds`.
40
+ - Never move pages between teams.
@@ -0,0 +1,22 @@
1
+ ---
2
+ type: index
3
+ owner: agent
4
+ updated: 2026-04-25
5
+ template_version: 2
6
+ ---
7
+ # Policy index
8
+
9
+ Auto-maintained by the daemon's policy-index reconciler. Direct edits
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).
13
+
14
+ ## Active
15
+
16
+ | Slug | Status | Cadence | Linked routine | Linked dossier | Why |
17
+ |---|---|---|---|---|---|
18
+
19
+ ## Removed
20
+
21
+ | Slug | Removed at | Why |
22
+ |---|---|---|