@aitne-sh/aitne 0.1.7 → 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.
- package/README.md +256 -833
- package/agent-assets/agent-profiles/_safety.md +52 -20
- package/agent-assets/agent-profiles/browser-task.md +108 -0
- package/agent-assets/agent-profiles/conversational.md +3 -3
- package/agent-assets/agent-profiles/profile-importer.md +3 -3
- package/agent-assets/agent-profiles/routine-fetch-window.md +30 -19
- package/agent-assets/agent-profiles/routine.md +4 -3
- package/agent-assets/agents/context-index-reconcile/agent.md +52 -0
- package/agent-assets/agents/evening-review/agent.md +53 -0
- package/agent-assets/agents/hourly-check/agent.md +62 -0
- package/agent-assets/agents/monthly-review/agent.md +55 -0
- package/agent-assets/agents/morning-routine/agent.md +78 -0
- package/agent-assets/agents/roadmap-maintenance/agent.md +52 -0
- package/agent-assets/agents/skill-curation/agent.md +52 -0
- package/agent-assets/agents/user-profile-sweep-evening/agent.md +48 -0
- package/agent-assets/agents/user-profile-sweep-morning/agent.md +53 -0
- package/agent-assets/agents/weekly-review/agent.md +51 -0
- package/agent-assets/docs/concepts/agent-day.md +18 -11
- package/agent-assets/docs/concepts/auth-health.md +56 -10
- package/agent-assets/docs/concepts/backends-and-tiers.md +110 -41
- package/agent-assets/docs/concepts/costs-and-quotas.md +74 -19
- package/agent-assets/docs/concepts/delegated-mode.md +193 -75
- package/agent-assets/docs/concepts/memory-model.md +79 -34
- package/agent-assets/docs/concepts/observations.md +61 -11
- package/agent-assets/docs/concepts/process-keys.md +66 -17
- package/agent-assets/docs/concepts/routines.md +77 -32
- package/agent-assets/docs/concepts/safety-and-execution.md +50 -21
- package/agent-assets/docs/concepts/safety-model.md +62 -37
- package/agent-assets/docs/concepts/skills.md +38 -17
- package/agent-assets/docs/features/integrations/browser-history.md +195 -0
- package/agent-assets/docs/features/integrations/calendar.md +40 -30
- package/agent-assets/docs/features/integrations/git.md +20 -9
- package/agent-assets/docs/features/integrations/github.md +93 -35
- package/agent-assets/docs/features/integrations/mail.md +60 -17
- package/agent-assets/docs/features/integrations/notion.md +51 -11
- package/agent-assets/docs/features/integrations/obsidian.md +35 -7
- package/agent-assets/docs/features/lifestyle/git.md +45 -44
- package/agent-assets/docs/features/lifestyle/reading.md +50 -22
- package/agent-assets/docs/features/lifestyle/receipts.md +66 -21
- package/agent-assets/docs/features/lifestyle/travel-bookings.md +91 -14
- package/agent-assets/docs/features/memory-files/agent-journal.md +111 -50
- package/agent-assets/docs/features/memory-files/projects.md +75 -15
- package/agent-assets/docs/features/memory-files/roadmap.md +55 -10
- package/agent-assets/docs/features/memory-files/schedule.md +113 -70
- package/agent-assets/docs/features/memory-files/today.md +47 -21
- package/agent-assets/docs/features/memory-files/user-profile.md +67 -31
- package/agent-assets/docs/features/messaging/bang-commands.md +115 -28
- package/agent-assets/docs/features/messaging/dashboard-chat.md +43 -21
- package/agent-assets/docs/features/messaging/discord.md +46 -4
- package/agent-assets/docs/features/messaging/overview.md +40 -19
- package/agent-assets/docs/features/messaging/pairing-and-magic-phrase.md +94 -27
- package/agent-assets/docs/features/messaging/slack.md +79 -14
- package/agent-assets/docs/features/messaging/telegram.md +25 -6
- package/agent-assets/docs/features/messaging/whatsapp.md +79 -14
- package/agent-assets/docs/features/operations/activity-and-conversations.md +45 -16
- package/agent-assets/docs/features/operations/approvals.md +53 -15
- package/agent-assets/docs/features/operations/backend-routing.md +75 -16
- package/agent-assets/docs/features/operations/cost-tracking.md +90 -17
- package/agent-assets/docs/features/operations/managed-chromium.md +221 -0
- package/agent-assets/docs/features/operations/notifications.md +58 -11
- package/agent-assets/docs/features/operations/quiet-hours.md +63 -40
- package/agent-assets/docs/features/operations/schedule-approaching.md +59 -16
- package/agent-assets/docs/features/routines/custom-routines.md +97 -23
- package/agent-assets/docs/features/routines/evening-review.md +75 -22
- package/agent-assets/docs/features/routines/hourly-check.md +150 -30
- package/agent-assets/docs/features/routines/morning-routine.md +60 -33
- package/agent-assets/docs/features/routines/weekly-review.md +65 -20
- package/agent-assets/docs/features/wiki/commands.md +37 -16
- package/agent-assets/docs/features/wiki/cost-and-approval.md +240 -0
- package/agent-assets/docs/features/wiki/dashboard.md +255 -0
- package/agent-assets/docs/features/wiki/overview.md +80 -12
- package/agent-assets/docs/features/wiki/search.md +248 -0
- package/agent-assets/docs/features/wiki/workspaces.md +254 -0
- package/agent-assets/docs/getting-started/01-what-is-this.md +64 -32
- package/agent-assets/docs/getting-started/02-first-steps.md +28 -10
- package/agent-assets/docs/getting-started/03-what-can-this-do.md +42 -21
- package/agent-assets/docs/getting-started/04-first-day.md +52 -20
- package/agent-assets/docs/glossary.md +285 -21
- package/agent-assets/docs/guides/add-a-custom-routine.md +74 -22
- package/agent-assets/docs/guides/backup-and-restore.md +92 -14
- package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +62 -25
- package/agent-assets/docs/guides/build-your-wiki.md +33 -6
- package/agent-assets/docs/guides/change-which-model-handles-x.md +70 -9
- package/agent-assets/docs/guides/connect-a-new-mail-account.md +80 -15
- package/agent-assets/docs/guides/explore-with-trace-and-connect.md +32 -9
- package/agent-assets/docs/guides/import-knowledge-file.md +60 -39
- package/agent-assets/docs/guides/install-and-run.md +64 -19
- package/agent-assets/docs/guides/maintain-wiki-health.md +41 -10
- package/agent-assets/docs/guides/migrate-machines.md +86 -18
- package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +119 -59
- package/agent-assets/docs/guides/pause-the-agent.md +71 -22
- package/agent-assets/docs/guides/reinstall-cleanly.md +102 -17
- package/agent-assets/docs/guides/setup-wizard.md +126 -56
- package/agent-assets/docs/guides/switch-default-backend.md +72 -17
- package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +31 -10
- package/agent-assets/docs/reference/api.md +162 -23
- package/agent-assets/docs/reference/cli-commands.md +55 -15
- package/agent-assets/docs/reference/config.md +246 -39
- package/agent-assets/docs/reference/disallowed-tools.md +42 -10
- package/agent-assets/docs/reference/keyboard-shortcuts.md +47 -10
- package/agent-assets/docs/reference/knowledge-layout.md +620 -0
- package/agent-assets/docs/reference/process-keys.md +126 -20
- package/agent-assets/docs/reference/skills.md +62 -18
- package/agent-assets/docs/troubleshooting/auth-failed.md +53 -19
- package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +96 -22
- package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +94 -20
- package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +77 -22
- package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +87 -22
- package/agent-assets/docs/troubleshooting/observation-not-detected.md +85 -21
- package/agent-assets/docs/troubleshooting/quota-exhausted.md +36 -6
- package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +128 -51
- package/agent-assets/docs/troubleshooting/wiki-write-failed.md +33 -11
- package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
- package/agent-assets/optimizer-skills/knowledge-map/SKILL.md +1 -1
- package/agent-assets/optimizer-skills/skill-curation/SKILL.md +2 -2
- package/agent-assets/sandbox/linux/aitne-chromium.apparmor +91 -0
- package/agent-assets/sandbox/macos/aitne-chromium.sb +156 -0
- package/agent-assets/skills/agent-actions/SKILL.md +122 -0
- package/agent-assets/skills/agent-create/SKILL.md +149 -0
- package/agent-assets/skills/attach/SKILL.md +3 -4
- package/agent-assets/skills/browser-history/SKILL.md +198 -0
- package/agent-assets/skills/browser-history-respond/SKILL.md +106 -0
- package/agent-assets/skills/browser-task/SKILL.md +169 -0
- package/agent-assets/skills/context/SKILL.md +45 -463
- package/agent-assets/skills/context/curation.json +2 -2
- package/agent-assets/skills/context/references/api.md +232 -0
- package/agent-assets/skills/context/references/required-frontmatter.md +73 -0
- package/agent-assets/skills/context/references/snapshot-files.md +103 -0
- package/agent-assets/skills/context/seeds/file-responsibilities.seed.json +4 -4
- package/agent-assets/skills/docs-search/SKILL.md +17 -16
- package/agent-assets/skills/external-services/SKILL.delegated.claude.md +14 -26
- package/agent-assets/skills/external-services/SKILL.delegated.codex.md +14 -26
- package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +14 -26
- package/agent-assets/skills/external-services/SKILL.md +9 -262
- package/agent-assets/skills/external-services/SKILL.native.claude.md +6 -7
- package/agent-assets/skills/external-services/SKILL.native.codex.md +8 -9
- package/agent-assets/skills/external-services/SKILL.native.gemini.md +5 -6
- package/agent-assets/skills/external-services/references/calendar-apple.md +97 -0
- package/agent-assets/skills/external-services/references/calendar-google.md +72 -0
- package/agent-assets/skills/external-services/references/calendar-outlook.md +36 -0
- package/agent-assets/skills/external-services/references/github.md +17 -0
- package/agent-assets/skills/external-services/references/obsidian.md +49 -0
- package/agent-assets/skills/external-services/references/skills-crud.md +27 -0
- package/agent-assets/skills/gmail-lifestyle/SKILL.md +151 -0
- package/agent-assets/skills/gmail-lifestyle/references/receipts-api.md +93 -0
- package/agent-assets/skills/gmail-lifestyle/references/travel-bookings-api.md +75 -0
- package/agent-assets/skills/mail/SKILL.delegated.claude.md +15 -6
- package/agent-assets/skills/mail/SKILL.delegated.codex.md +9 -5
- package/agent-assets/skills/mail/SKILL.delegated.gemini.md +9 -5
- package/agent-assets/skills/mail/SKILL.md +9 -114
- package/agent-assets/skills/mail/SKILL.native.claude.md +1 -1
- package/agent-assets/skills/mail/SKILL.native.codex.md +1 -1
- package/agent-assets/skills/mail/SKILL.native.gemini.md +1 -1
- package/agent-assets/skills/mail/references/api.md +110 -0
- package/agent-assets/skills/mail/references/examples.md +70 -0
- package/agent-assets/skills/mail/references/providers.md +8 -8
- package/agent-assets/skills/managed-tasks/SKILL.md +472 -0
- package/agent-assets/skills/managed-tasks/references/errors.md +73 -0
- package/agent-assets/skills/managed-tasks/references/output-path.md +75 -0
- package/agent-assets/skills/managed-tasks/references/recurrence-rule.md +86 -0
- package/agent-assets/skills/management-policy/SKILL.md +54 -125
- package/agent-assets/skills/management-policy/curation.json +1 -1
- package/agent-assets/skills/management-policy/references/policy-workflow.md +101 -0
- package/agent-assets/skills/management-policy/seeds/policy-file-shape.seed.json +1 -1
- package/agent-assets/skills/notify/SKILL.md +10 -82
- package/agent-assets/skills/notify/references/priority.md +65 -0
- package/agent-assets/skills/notion/SKILL.delegated.claude.md +2 -2
- package/agent-assets/skills/notion/SKILL.delegated.codex.md +2 -2
- package/agent-assets/skills/notion/SKILL.delegated.gemini.md +2 -2
- package/agent-assets/skills/notion/SKILL.md +6 -10
- package/agent-assets/skills/notion/SKILL.native.claude.md +11 -8
- package/agent-assets/skills/notion/SKILL.native.codex.md +10 -6
- package/agent-assets/skills/notion/SKILL.native.gemini.md +10 -6
- package/agent-assets/skills/observations/SKILL.md +25 -14
- package/agent-assets/skills/project-doc/SKILL.md +2 -6
- package/agent-assets/skills/project-doc/curation.json +3 -3
- package/agent-assets/skills/project-doc/seeds/project-shape.seed.json +7 -4
- package/agent-assets/skills/project-doc/seeds/slug-grammar.seed.json +3 -3
- package/agent-assets/skills/reading/SKILL.md +12 -2
- package/agent-assets/skills/reading/references/reading-taste.md +2 -2
- package/agent-assets/skills/roadmap/SKILL.md +43 -141
- package/agent-assets/skills/roadmap/curation.json +1 -1
- package/agent-assets/skills/roadmap/references/api.md +100 -0
- package/agent-assets/skills/roadmap/references/cross-check.md +80 -0
- package/agent-assets/skills/roadmap/references/migration.md +56 -0
- package/agent-assets/skills/roadmap/references/preparation-timeline.md +2 -2
- package/agent-assets/skills/roadmap/seeds/entry-types.seed.json +1 -1
- package/agent-assets/skills/schedule/SKILL.md +76 -104
- package/agent-assets/skills/schedule/references/batch.md +93 -0
- package/agent-assets/skills/schedule/references/errors.md +217 -0
- package/agent-assets/skills/schedule/references/model-selection.md +96 -0
- package/agent-assets/skills/schedule/references/recurrence-rule.md +86 -0
- package/agent-assets/skills/scheduled-managed-task/SKILL.md +59 -51
- package/agent-assets/skills/today/SKILL.md +32 -62
- package/agent-assets/skills/today/curation.json +3 -3
- package/agent-assets/skills/today/references/agent-plan-lifecycle.md +114 -0
- package/agent-assets/skills/today/seeds/section-shape.seed.json +1 -1
- package/agent-assets/skills/user-interview/SKILL.md +23 -67
- package/agent-assets/skills/user-interview/references/op-briefing.md +51 -0
- package/agent-assets/skills/user-interview/references/op-morning.md +59 -0
- package/agent-assets/skills/user-interview/references/sweep-and-fallback.md +9 -1
- package/agent-assets/skills/user-profile/SKILL.md +54 -74
- package/agent-assets/skills/user-profile/curation.json +2 -2
- package/agent-assets/skills/user-profile/references/character-preferences.md +83 -0
- package/agent-assets/skills/user-profile/seeds/routing-table.seed.json +8 -8
- package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +30 -2
- package/agent-assets/skills/wiki/wiki-ask/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-compile/SKILL.md +4 -5
- package/agent-assets/skills/wiki/wiki-connect/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-graduate/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-ingest/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-lint/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-trace/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-vault-rules/SKILL.md +0 -1
- package/agent-assets/system-prompts/routine-fetch-window.md +78 -0
- package/agent-assets/system-prompts/skill-index-instruction.md +26 -0
- package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +20 -11
- package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +18 -9
- package/agent-assets/task-flows/_partials/capture-user-info.md +24 -0
- package/agent-assets/task-flows/_partials/confirm-subflow.md +68 -0
- package/agent-assets/task-flows/_partials/dm-intent.long-horizon.md +35 -0
- package/agent-assets/task-flows/_partials/dm-intent.project.md +391 -0
- package/agent-assets/task-flows/_partials/mail-acquire.gmail.md +20 -11
- package/agent-assets/task-flows/_partials/mail-acquire.outlook_mail.md +18 -9
- package/agent-assets/task-flows/_partials/notion-acquire.notion.md +26 -15
- package/agent-assets/task-flows/browser_task.md +84 -0
- package/agent-assets/task-flows/github.assigned.md +1 -1
- package/agent-assets/task-flows/github.pull_request.review_requested.md +2 -2
- package/agent-assets/task-flows/github.workflow_run.failed.md +2 -2
- package/agent-assets/task-flows/knowledge.import.md +15 -15
- package/agent-assets/task-flows/message.received.dm.md +20 -17
- package/agent-assets/task-flows/message.received.dm_first.md +11 -15
- package/agent-assets/task-flows/routine.custom.md +6 -4
- package/agent-assets/task-flows/routine.evening_review.md +46 -170
- package/agent-assets/task-flows/routine.fetch_window.md +19 -14
- package/agent-assets/task-flows/routine.hourly_check.md +27 -15
- package/agent-assets/task-flows/routine.hourly_check.triage.md +1 -1
- package/agent-assets/task-flows/routine.monthly_review.md +67 -25
- package/agent-assets/task-flows/routine.morning_routine_journal.md +135 -0
- package/agent-assets/task-flows/routine.morning_routine_today.md +673 -0
- package/agent-assets/task-flows/routine.research_cluster_update.md +35 -0
- package/agent-assets/task-flows/routine.research_dispatch.md +38 -0
- package/agent-assets/task-flows/routine.research_offer_dm.md +125 -0
- package/agent-assets/task-flows/routine.research_wiki_summary.md +53 -0
- package/agent-assets/task-flows/routine.roadmap_refresh.md +68 -23
- package/agent-assets/task-flows/routine.today_refresh.md +4 -4
- package/agent-assets/task-flows/routine.user_profile_sweep.md +19 -20
- package/agent-assets/task-flows/routine.weekly_review.md +370 -86
- package/agent-assets/task-flows/schedule.approaching.md +0 -1
- package/agent-assets/task-flows/scheduled.dm.md +13 -13
- package/agent-assets/task-flows/scheduled.task.md +9 -9
- package/agent-assets/task-flows/setup.initial.md +171 -251
- package/agent-assets/task-flows/setup.update.md +2 -2
- package/agent-assets/task-flows/wiki.ingest_url.md +1 -1
- package/agent-assets/templates/README.md +27 -20
- package/agent-assets/templates/_index.md +42 -26
- package/agent-assets/templates/_manifest.json +34 -99
- package/agent-assets/templates/{user → identity}/_index.md +1 -1
- package/agent-assets/templates/identity/expertise.md +9 -0
- package/agent-assets/templates/identity/goals.md +9 -0
- package/agent-assets/templates/identity/people.md +13 -0
- package/agent-assets/templates/identity/personal.md +9 -0
- package/agent-assets/templates/{user → identity}/profile.md +2 -2
- package/agent-assets/templates/identity/work.md +9 -0
- package/agent-assets/templates/{dossiers → knowledge/dossiers}/_index.md +2 -2
- package/agent-assets/templates/{projects → plans/projects}/_active.base +1 -1
- package/agent-assets/templates/policies/_index.md +21 -0
- package/agent-assets/templates/{rules → policies}/journal-export.md +1 -1
- package/agent-assets/templates/policies/journal-format.md +168 -0
- package/agent-assets/templates/{rules/policies → policies/management-captures}/_index.md +2 -2
- package/agent-assets/templates/{rules → policies}/management.md +3 -3
- package/agent-assets/templates/{rules → policies}/mcp.md +1 -1
- package/agent-assets/templates/{rules → policies}/redaction.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/_index.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/evening.md +2 -2
- package/agent-assets/templates/{routines → policies/routines}/hourly.md +1 -1
- package/agent-assets/templates/{routines → policies/routines}/monthly.md +2 -2
- package/bin/aitne.mjs +21 -5
- package/package.json +5 -4
- package/scripts/commands/doctor.mjs +63 -5
- package/scripts/commands/run-now.mjs +187 -0
- package/scripts/commands/verify.mjs +264 -0
- package/scripts/lib/ports.d.mts +27 -0
- package/scripts/lib/ports.mjs +36 -0
- package/scripts/lib/read-api-token.mjs +176 -0
- package/scripts/start.mjs +2 -1
- package/agent-assets/docs/features/lifestyle/travel-time.md +0 -52
- package/agent-assets/docs/features/routines/monthly-review.md +0 -65
- package/agent-assets/skills/management-task-modify/SKILL.md +0 -203
- package/agent-assets/skills/management-task-register/SKILL.md +0 -330
- package/agent-assets/skills/management-task-stop/SKILL.md +0 -166
- package/agent-assets/skills/receipts/SKILL.md +0 -134
- package/agent-assets/skills/travel/SKILL.md +0 -132
- package/agent-assets/skills/travel-time/SKILL.md +0 -158
- package/agent-assets/task-flows/routine.morning_routine.md +0 -322
- package/agent-assets/task-flows/routine.morning_routine_initial.md +0 -204
- package/agent-assets/templates/context-index.md +0 -42
- package/agent-assets/templates/rules/_index.md +0 -19
- package/agent-assets/templates/rules/journal-format.md +0 -61
- package/agent-assets/templates/user/expertise.md +0 -7
- package/agent-assets/templates/user/goals.md +0 -7
- package/agent-assets/templates/user/people.md +0 -7
- package/agent-assets/templates/user/personal.md +0 -7
- package/agent-assets/templates/user/work.md +0 -7
- /package/agent-assets/templates/{agent/journal.md → journal/agent.md} +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/evening.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/hourly.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/monthly.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/morning.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/roadmap.md +0 -0
- /package/agent-assets/templates/{dossiers → knowledge/dossiers}/weekly.md +0 -0
- /package/agent-assets/templates/{projects → plans/projects}/_index.md +0 -0
- /package/agent-assets/templates/{roadmap.md → plans/roadmap.md} +0 -0
- /package/agent-assets/templates/{routines → policies/routines}/morning.md +0 -0
- /package/agent-assets/templates/{routines → policies/routines}/weekly.md +0 -0
- /package/agent-assets/templates/{agent → state}/profile-questions.md +0 -0
- /package/agent-assets/templates/{today.md → state/today.md} +0 -0
|
@@ -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
|
|
5
|
-
|
|
6
|
-
|
|
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 (`
|
|
15
|
-
|
|
16
|
-
(Policy A). User-facing scaffolds
|
|
17
|
-
`
|
|
18
|
-
`
|
|
19
|
-
|
|
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.
|
|
34
|
-
copied verbatim by `skeleton.ts:ensureSkeletonFiles` when the
|
|
35
|
-
tree is reachable; when the tree is unreachable, `skeleton.ts`
|
|
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 `
|
|
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` —
|
|
79
|
-
carry the marker. These files are shape canaries /
|
|
80
|
-
configs that evolve through schema validation, not
|
|
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 `
|
|
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)
|
|
92
|
-
|
|
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-
|
|
5
|
-
template_version:
|
|
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.
|
|
10
|
-
|
|
11
|
-
|
|
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** → `
|
|
16
|
-
- **Today /
|
|
17
|
-
- **
|
|
18
|
-
|
|
19
|
-
- **
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- **
|
|
29
|
-
-
|
|
30
|
-
|
|
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:
|
|
35
|
-
`Edit`/`Write` tools are not available to the agent — the API
|
|
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
|
-
|
|
39
|
-
|
|
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":
|
|
3
|
-
"generatedAt": "2026-
|
|
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
|
-
|
|
8
|
-
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"dossiers/
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
"dossiers/
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
"
|
|
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": 1
|
|
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": 1
|
|
86
|
-
},
|
|
87
|
-
"user/goals.md": {
|
|
88
|
-
"version": 1
|
|
89
|
-
},
|
|
90
|
-
"user/people.md": {
|
|
91
|
-
"version": 1
|
|
92
|
-
},
|
|
93
|
-
"user/personal.md": {
|
|
94
|
-
"version": 1
|
|
95
|
-
},
|
|
96
|
-
"user/profile.md": {
|
|
97
|
-
"version": 2
|
|
98
|
-
},
|
|
99
|
-
"user/work.md": {
|
|
100
|
-
"version": 1
|
|
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 `
|
|
13
|
-
> Fetch index: `curl -s http://localhost:8321/api/context/
|
|
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)
|
|
@@ -15,8 +15,8 @@ Injected into prompts through the root-level context-index.md catalog.
|
|
|
15
15
|
| File | Process key |
|
|
16
16
|
|---|---|
|
|
17
17
|
| `hourly.md` | `routine.hourly_check` |
|
|
18
|
-
| `morning.md` | `routine.morning_routine`, `routine.
|
|
18
|
+
| `morning.md` | `routine.morning_routine`, `routine.morning_routine_today` |
|
|
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` |
|
|
@@ -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 `
|
|
12
|
+
rules run *on top of* the built-in `policies/redaction.md` patterns.
|
|
13
13
|
|
|
14
14
|
## Inclusion defaults
|
|
15
15
|
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: rule
|
|
3
|
+
slug: journal-format
|
|
4
|
+
owner: user
|
|
5
|
+
updated: 2026-05-16
|
|
6
|
+
template_version: 3
|
|
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
|
+
## Framing — this is the user's diary
|
|
17
|
+
|
|
18
|
+
`daily/<date>.md` is the **user's diary**, not the agent's behavior
|
|
19
|
+
log. It records the user's day: what the user did, what the user
|
|
20
|
+
talked about, what was on their schedule. The agent is the author
|
|
21
|
+
because the human user doesn't journal by hand — but the perspective,
|
|
22
|
+
voice, and content all belong to the user.
|
|
23
|
+
|
|
24
|
+
Agent-side bookkeeping (action counts, internal anomalies, audit
|
|
25
|
+
trail) lives in `journal/agent.md` — not here. If you find yourself
|
|
26
|
+
about to log "the agent ran N tools today" or "the hourly check
|
|
27
|
+
fired M times", that belongs in the agent-side log instead. Filter
|
|
28
|
+
it out.
|
|
29
|
+
|
|
30
|
+
The daemon's `journal-skeleton-builder`
|
|
31
|
+
(`docs/design/appendices/morning-routine-optimization.md` §"Daemon-side
|
|
32
|
+
modules to add" — Phase 2 daemon primitive) emits scratch data
|
|
33
|
+
(`## Schedule`, `## Tasks`, `## Conversations`) read from SQLite +
|
|
34
|
+
yesterday.md. Stage B **authors the entire body** per the section
|
|
35
|
+
list below, using the scratch sections as input data — the skeleton
|
|
36
|
+
sections are NOT preserved verbatim. Only the skeleton-owned
|
|
37
|
+
frontmatter MUST be preserved byte-for-byte; the daemon's daily-write
|
|
38
|
+
chokepoint validates frontmatter drift with
|
|
39
|
+
`context.skeleton_field_drift` and rejects the PUT with 422. Body
|
|
40
|
+
content (section names, ordering, prose) is Stage B's responsibility
|
|
41
|
+
and not validated for drift.
|
|
42
|
+
|
|
43
|
+
## Required frontmatter fields
|
|
44
|
+
|
|
45
|
+
Skeleton-owned (preserved byte-for-byte by Stage B):
|
|
46
|
+
- `date`, `weekday`, `type: daily`, `owner: agent`, `agent_generated: true`
|
|
47
|
+
- `calendar_events: <count>` — total calendar events filtered to the
|
|
48
|
+
agent-day window
|
|
49
|
+
- `messages_handled: <count>` — **incoming user messages only**
|
|
50
|
+
(`messages.role='user'` rows within the agent-day window). Agent
|
|
51
|
+
replies and internal `system` rows are excluded so the value
|
|
52
|
+
matches "how many messages did the user send today" rather than
|
|
53
|
+
total conversation turns. (Field name kept for backward
|
|
54
|
+
compatibility with already-written daily journals; a future rename
|
|
55
|
+
to `messages_received` is deferred.)
|
|
56
|
+
- `updated: <YYYY-MM-DD>` — today's agent-day, stamped by the daemon
|
|
57
|
+
at skeleton-build time. The generic context-frontmatter validator
|
|
58
|
+
requires this field on every `daily/*.md` PUT; emitting it from the
|
|
59
|
+
daemon (instead of leaving it as a Stage-B placeholder) eliminates
|
|
60
|
+
the 422 failure mode where Stage B forgot to fill the slot.
|
|
61
|
+
|
|
62
|
+
Stage B-owned (filled from the narrative Stage B authors):
|
|
63
|
+
- `agent_last_synced_at` (ISO 8601), `content_hash` (`sha256:<hex>`)
|
|
64
|
+
- `projects: [...]`, `people: [...]`, `tags: [...]`
|
|
65
|
+
|
|
66
|
+
## Required body sections (Stage B output order)
|
|
67
|
+
|
|
68
|
+
Stage B authors each section below. Annotations describe the scratch
|
|
69
|
+
data Stage B reads from the daemon-emitted skeleton; the skeleton
|
|
70
|
+
section names happen to match the output section names, but Stage B
|
|
71
|
+
remains free to reshape data, add bullets, drop a section on a sparse
|
|
72
|
+
day, etc.
|
|
73
|
+
|
|
74
|
+
1. `# YYYY-MM-DD (Weekday)` — title. Stage B emits verbatim from the
|
|
75
|
+
skeleton's title line.
|
|
76
|
+
2. `## Summary` — **one paragraph, 3–5 sentences, first-person voice
|
|
77
|
+
from the user's perspective**. Authored entirely by Stage B (no
|
|
78
|
+
skeleton placeholder). Placed first so the reader's eye lands on
|
|
79
|
+
the narrative synthesis before the raw-fact sections that follow
|
|
80
|
+
(TL;DR-at-top reading order matching the pre-rev2 daily journal
|
|
81
|
+
corpus the user has accumulated). The voice is **the user's**, not
|
|
82
|
+
the agent's — "I shipped X", "I met with Y", "I felt rushed about
|
|
83
|
+
Z". Don't write about what the agent did ("the agent triaged 4
|
|
84
|
+
inbox items") — that's footprint, not diary content.
|
|
85
|
+
3. `## Schedule` — yesterday's events the user attended (or had
|
|
86
|
+
planned). Each line is `- HH:MM — <title>` for timed events, `-
|
|
87
|
+
<title>` for all-day. `- (none)` when the day carried no events.
|
|
88
|
+
Stage B reads the skeleton's `## Schedule` scratch section as
|
|
89
|
+
input; may add `(attended)` / `(skipped)` flags from yesterday
|
|
90
|
+
context.
|
|
91
|
+
4. `## Tasks` — yesterday's `## User Tasks` carried forward, checkbox
|
|
92
|
+
markers stripped, `(none)` placeholder filtered. These are the
|
|
93
|
+
things the user was meant to do — keep them user-side (not
|
|
94
|
+
agent-side schedule rows). `- (none)` when yesterday had no User
|
|
95
|
+
Tasks. Stage B reads the skeleton's `## Tasks` scratch section as
|
|
96
|
+
input.
|
|
97
|
+
5. `## Conversations` — **what the user talked about that day**, as
|
|
98
|
+
topic-level bullets. Stage B reads the skeleton's
|
|
99
|
+
`## Conversations` scratch section (rolling DM summaries with
|
|
100
|
+
HH:MM + message counts) and synthesises **2–5 topic bullets** in
|
|
101
|
+
the user's voice, e.g. `- Discussed Q2 roadmap with the agent —
|
|
102
|
+
agreed to defer feature X`. The HH:MM and `(n=N)` markers from
|
|
103
|
+
the scratch input are NOT preserved verbatim; they're inputs for
|
|
104
|
+
topic synthesis, not output structure. `- (none)` when no DM
|
|
105
|
+
activity. Skip mechanical per-thread enumeration — collapse to
|
|
106
|
+
topics.
|
|
107
|
+
|
|
108
|
+
**Sections deliberately NOT in the daily journal:**
|
|
109
|
+
|
|
110
|
+
- ❌ Agent action counts (`agent_actions` breakdown by type). Lives
|
|
111
|
+
in `journal/agent.md` instead — the audit-trail footprint.
|
|
112
|
+
- ❌ Internal stage status, retry counts, anomalies. Same as above.
|
|
113
|
+
- ❌ "The agent did X for the user" framing. The user's diary uses
|
|
114
|
+
user voice; agent meta-narration belongs in the agent-side log.
|
|
115
|
+
|
|
116
|
+
## Voice (`## Summary` and `## Conversations`)
|
|
117
|
+
|
|
118
|
+
- First-person **from the user's perspective** ("I shipped...", "I
|
|
119
|
+
met with...", "I asked the agent about..."), concise, factual
|
|
120
|
+
- Written in `settings.primary_language`; keep technical terms in their
|
|
121
|
+
original form if that's how the user writes them
|
|
122
|
+
- Refers to the entities Stage B surfaces in the body sections that
|
|
123
|
+
follow (the meetings under `## Schedule`, the tasks under
|
|
124
|
+
`## Tasks`, the topics under `## Conversations`) so the narrative
|
|
125
|
+
reads as a synthesis of those facts, not a separate stream of
|
|
126
|
+
consciousness
|
|
127
|
+
|
|
128
|
+
## Wikilink rendering
|
|
129
|
+
|
|
130
|
+
- When `settings.vault_mode` is `obsidian`, Stage B renders project /
|
|
131
|
+
people references throughout the body as `[[wikilinks]]` targeting
|
|
132
|
+
`projects/<slug>.md` or `identity/people.md#<person>` (basename resolves
|
|
133
|
+
automatically). The `## Summary` paragraph is the primary surface,
|
|
134
|
+
but data sections may also receive wikilinks where a project / person
|
|
135
|
+
name appears (e.g. a meeting title containing a person's name).
|
|
136
|
+
- When `vault_mode` is `plain`, Stage B writes plain text only — no
|
|
137
|
+
double brackets, no link markup.
|
|
138
|
+
- The skeleton's scratch sections do not embed wikilinks; Stage B
|
|
139
|
+
applies them as it authors the final body.
|
|
140
|
+
|
|
141
|
+
## Redaction
|
|
142
|
+
|
|
143
|
+
- Apply `policies/redaction.md` patterns to the entire body Stage B
|
|
144
|
+
authors (Summary + data sections both — Stage B owns the body, so
|
|
145
|
+
redaction applies wherever sensitive content might surface).
|
|
146
|
+
- Apply `policies/journal-export.md` user rules to the entire body.
|
|
147
|
+
- If yesterday.md frontmatter had `no_journal_export: true`, write
|
|
148
|
+
`[Skipped by user request]` as the body of `## Summary` and omit
|
|
149
|
+
the data sections (they would echo information the export rule is
|
|
150
|
+
trying to suppress).
|
|
151
|
+
|
|
152
|
+
The skeleton's scratch sections carry data sourced from upstream
|
|
153
|
+
writers (calendar observer, yesterday.md `## User Tasks`, the
|
|
154
|
+
`dm_conversation_log` rolling-summary writer). Stage B SHOULD apply
|
|
155
|
+
redaction during authoring; but the *primary* defence belongs
|
|
156
|
+
**upstream** — if a credit-card number is appearing in
|
|
157
|
+
`dm_conversation_log` summaries, fix the rolling-summary writer
|
|
158
|
+
rather than relying on Stage B as the last line of defence. Stage
|
|
159
|
+
B's redaction is a backstop, not a safety net.
|
|
160
|
+
|
|
161
|
+
## Conflict behavior
|
|
162
|
+
|
|
163
|
+
Follow B-006 content-hash protection: if the user edited the previous
|
|
164
|
+
day's `daily/<date>.md`, append `## Agent revision — <ISO timestamp>`
|
|
165
|
+
rather than overwrite. The Agent revision section may carry a fresh
|
|
166
|
+
Summary + any updated data sections. The original body the user
|
|
167
|
+
edited is preserved verbatim above the Agent revision boundary;
|
|
168
|
+
Stage B does NOT rewrite sections the user touched.
|
|
@@ -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 `
|
|
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
|
|
|
@@ -32,15 +32,15 @@ or the dashboard's Settings → Management page._
|
|
|
32
32
|
## C. Active Policies
|
|
33
33
|
|
|
34
34
|
Auto-maintained by the daemon (do not edit). Source files live under
|
|
35
|
-
`
|
|
36
|
-
`management-policy` skill. Full index: [[
|
|
35
|
+
`policies/management-captures/<slug>.md`; capture new policies via the
|
|
36
|
+
`management-policy` skill. Full index: [[policies/management-captures/_index.md]]
|
|
37
37
|
|
|
38
38
|
_No active policies yet._
|
|
39
39
|
|
|
40
40
|
## Notes
|
|
41
41
|
|
|
42
42
|
- The agent cannot use `Edit` / `Write` tools on this file — writes go
|
|
43
|
-
through `/api/context/
|
|
43
|
+
through `/api/context/policies/management` (locked + snapshotted) or the
|
|
44
44
|
managed-tasks / sot-bindings API surfaces.
|
|
45
45
|
- This file is injected into every flow via `policy-files.ts`. Keep it
|
|
46
46
|
concise so prompt assembly stays cheap.
|
|
@@ -16,7 +16,7 @@ This file governs how the agent uses attached Model Context Protocol
|
|
|
16
16
|
the target with me via DM when the change is visible to others (a new
|
|
17
17
|
issue, a posted message, an edited doc).
|
|
18
18
|
- Failures are loggable events. On repeated MCP call failures, the agent
|
|
19
|
-
appends to `agent
|
|
19
|
+
appends to `journal/agent.md` and surfaces the pattern at the next
|
|
20
20
|
hourly check.
|
|
21
21
|
- Scope to the active task. MCP calls unrelated to the current flow's
|
|
22
22
|
stated goal are skipped.
|