@aitne-sh/aitne 0.1.7 → 0.1.8
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 +195 -829
- package/agent-assets/agent-profiles/_safety.md +49 -17
- package/agent-assets/agent-profiles/profile-importer.md +1 -1
- package/agent-assets/agent-profiles/routine.md +4 -3
- package/agent-assets/docs/concepts/agent-day.md +6 -1
- package/agent-assets/docs/concepts/auth-health.md +10 -1
- package/agent-assets/docs/concepts/backends-and-tiers.md +74 -40
- package/agent-assets/docs/concepts/costs-and-quotas.md +25 -5
- package/agent-assets/docs/concepts/delegated-mode.md +147 -68
- package/agent-assets/docs/concepts/memory-model.md +9 -4
- package/agent-assets/docs/concepts/observations.md +13 -1
- package/agent-assets/docs/concepts/process-keys.md +20 -5
- package/agent-assets/docs/concepts/routines.md +38 -20
- package/agent-assets/docs/concepts/safety-model.md +30 -13
- package/agent-assets/docs/concepts/skills.md +12 -7
- package/agent-assets/docs/features/integrations/calendar.md +1 -1
- package/agent-assets/docs/features/integrations/git.md +2 -2
- package/agent-assets/docs/features/integrations/github.md +9 -2
- package/agent-assets/docs/features/integrations/mail.md +1 -1
- package/agent-assets/docs/features/integrations/notion.md +34 -6
- package/agent-assets/docs/features/integrations/obsidian.md +7 -2
- package/agent-assets/docs/features/lifestyle/git.md +4 -7
- package/agent-assets/docs/features/lifestyle/receipts.md +17 -2
- package/agent-assets/docs/features/lifestyle/travel-bookings.md +15 -0
- package/agent-assets/docs/features/lifestyle/travel-time.md +7 -1
- package/agent-assets/docs/features/memory-files/agent-journal.md +2 -2
- package/agent-assets/docs/features/memory-files/projects.md +6 -0
- package/agent-assets/docs/features/memory-files/roadmap.md +5 -0
- package/agent-assets/docs/features/memory-files/today.md +1 -0
- package/agent-assets/docs/features/memory-files/user-profile.md +6 -0
- package/agent-assets/docs/features/messaging/bang-commands.md +20 -10
- package/agent-assets/docs/features/messaging/discord.md +12 -1
- package/agent-assets/docs/features/messaging/overview.md +10 -7
- package/agent-assets/docs/features/messaging/slack.md +13 -1
- package/agent-assets/docs/features/messaging/telegram.md +7 -1
- package/agent-assets/docs/features/messaging/whatsapp.md +12 -1
- package/agent-assets/docs/features/operations/activity-and-conversations.md +2 -2
- package/agent-assets/docs/features/operations/approvals.md +6 -0
- package/agent-assets/docs/features/operations/backend-routing.md +7 -0
- package/agent-assets/docs/features/operations/cost-tracking.md +6 -0
- package/agent-assets/docs/features/operations/notifications.md +6 -0
- package/agent-assets/docs/features/operations/schedule-approaching.md +22 -9
- package/agent-assets/docs/features/routines/custom-routines.md +10 -4
- package/agent-assets/docs/features/routines/evening-review.md +1 -1
- package/agent-assets/docs/features/routines/hourly-check.md +1 -1
- package/agent-assets/docs/features/routines/morning-routine.md +24 -15
- package/agent-assets/docs/features/routines/weekly-review.md +38 -12
- package/agent-assets/docs/features/wiki/commands.md +11 -0
- package/agent-assets/docs/features/wiki/overview.md +13 -3
- package/agent-assets/docs/getting-started/01-what-is-this.md +32 -11
- package/agent-assets/docs/getting-started/02-first-steps.md +17 -4
- package/agent-assets/docs/getting-started/03-what-can-this-do.md +21 -11
- package/agent-assets/docs/getting-started/04-first-day.md +14 -0
- package/agent-assets/docs/glossary.md +65 -12
- package/agent-assets/docs/guides/add-a-custom-routine.md +12 -0
- package/agent-assets/docs/guides/backup-and-restore.md +16 -2
- package/agent-assets/docs/guides/budget-and-cost-for-wiki.md +6 -0
- package/agent-assets/docs/guides/build-your-wiki.md +14 -0
- package/agent-assets/docs/guides/change-which-model-handles-x.md +7 -0
- package/agent-assets/docs/guides/connect-a-new-mail-account.md +16 -0
- package/agent-assets/docs/guides/explore-with-trace-and-connect.md +6 -0
- package/agent-assets/docs/guides/import-knowledge-file.md +11 -0
- package/agent-assets/docs/guides/install-and-run.md +20 -4
- package/agent-assets/docs/guides/maintain-wiki-health.md +6 -0
- package/agent-assets/docs/guides/migrate-machines.md +13 -1
- package/agent-assets/docs/guides/multiple-wikis-for-multiple-domains.md +9 -0
- package/agent-assets/docs/guides/pause-the-agent.md +12 -4
- package/agent-assets/docs/guides/reinstall-cleanly.md +19 -4
- package/agent-assets/docs/guides/setup-wizard.md +20 -9
- package/agent-assets/docs/guides/switch-default-backend.md +10 -1
- package/agent-assets/docs/guides/use-an-existing-obsidian-vault.md +5 -0
- package/agent-assets/docs/reference/api.md +29 -1
- package/agent-assets/docs/reference/cli-commands.md +22 -3
- package/agent-assets/docs/reference/config.md +37 -5
- package/agent-assets/docs/reference/disallowed-tools.md +13 -0
- package/agent-assets/docs/reference/keyboard-shortcuts.md +13 -0
- package/agent-assets/docs/reference/process-keys.md +70 -20
- package/agent-assets/docs/reference/skills.md +27 -9
- package/agent-assets/docs/troubleshooting/auth-failed.md +7 -2
- package/agent-assets/docs/troubleshooting/dashboard-shows-degraded.md +13 -1
- package/agent-assets/docs/troubleshooting/fallback-keeps-firing.md +10 -0
- package/agent-assets/docs/troubleshooting/messaging-not-pairing.md +11 -0
- package/agent-assets/docs/troubleshooting/morning-routine-didnt-run.md +9 -4
- package/agent-assets/docs/troubleshooting/observation-not-detected.md +12 -0
- package/agent-assets/docs/troubleshooting/quota-exhausted.md +7 -1
- package/agent-assets/docs/troubleshooting/wiki-ingest-full-blocked.md +5 -0
- package/agent-assets/docs/troubleshooting/wiki-write-failed.md +5 -0
- package/agent-assets/optimizer-skills/drift-analysis/SKILL.md +1 -1
- package/agent-assets/optimizer-skills/skill-curation/SKILL.md +2 -2
- package/agent-assets/skills/agent-actions/SKILL.md +122 -0
- package/agent-assets/skills/attach/SKILL.md +1 -2
- package/agent-assets/skills/context/SKILL.md +36 -454
- package/agent-assets/skills/context/references/api.md +220 -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 +1 -1
- package/agent-assets/skills/docs-search/SKILL.md +13 -13
- package/agent-assets/skills/external-services/SKILL.delegated.claude.md +5 -7
- package/agent-assets/skills/external-services/SKILL.delegated.codex.md +5 -7
- package/agent-assets/skills/external-services/SKILL.delegated.gemini.md +5 -7
- package/agent-assets/skills/external-services/SKILL.md +6 -259
- package/agent-assets/skills/external-services/SKILL.native.claude.md +1 -2
- package/agent-assets/skills/external-services/SKILL.native.codex.md +1 -2
- package/agent-assets/skills/external-services/SKILL.native.gemini.md +1 -2
- 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 +224 -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/gmail-lifestyle/references/travel-time-api.md +59 -0
- package/agent-assets/skills/mail/SKILL.delegated.claude.md +1 -1
- package/agent-assets/skills/mail/SKILL.delegated.codex.md +1 -1
- package/agent-assets/skills/mail/SKILL.delegated.gemini.md +1 -1
- 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 +108 -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 +70 -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 +33 -105
- package/agent-assets/skills/management-policy/references/policy-workflow.md +101 -0
- package/agent-assets/skills/notify/SKILL.md +6 -78
- package/agent-assets/skills/notify/references/priority.md +60 -0
- package/agent-assets/skills/notion/SKILL.delegated.claude.md +1 -1
- package/agent-assets/skills/notion/SKILL.delegated.codex.md +1 -1
- package/agent-assets/skills/notion/SKILL.delegated.gemini.md +1 -1
- package/agent-assets/skills/notion/SKILL.md +6 -10
- package/agent-assets/skills/notion/SKILL.native.claude.md +1 -2
- package/agent-assets/skills/notion/SKILL.native.codex.md +1 -2
- package/agent-assets/skills/notion/SKILL.native.gemini.md +1 -2
- package/agent-assets/skills/observations/SKILL.md +1 -6
- package/agent-assets/skills/project-doc/SKILL.md +1 -5
- package/agent-assets/skills/reading/SKILL.md +2 -2
- package/agent-assets/skills/roadmap/SKILL.md +37 -135
- package/agent-assets/skills/roadmap/references/api.md +100 -0
- package/agent-assets/skills/roadmap/references/cross-check.md +73 -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/schedule/SKILL.md +52 -88
- package/agent-assets/skills/schedule/references/batch.md +93 -0
- package/agent-assets/skills/schedule/references/errors.md +214 -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/schedule/references/recurring.md +185 -0
- package/agent-assets/skills/scheduled-managed-task/SKILL.md +13 -15
- package/agent-assets/skills/today/SKILL.md +27 -57
- package/agent-assets/skills/today/references/agent-plan-lifecycle.md +113 -0
- package/agent-assets/skills/user-interview/SKILL.md +12 -59
- 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 +1 -1
- package/agent-assets/skills/user-profile/SKILL.md +43 -63
- package/agent-assets/skills/user-profile/references/character-preferences.md +83 -0
- package/agent-assets/skills/user-profile/seeds/topic-files.seed.json +28 -0
- package/agent-assets/skills/wiki/wiki-ask/SKILL.md +0 -1
- package/agent-assets/skills/wiki/wiki-compile/SKILL.md +0 -1
- 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 +68 -0
- package/agent-assets/system-prompts/skill-index-instruction.md +26 -0
- package/agent-assets/task-flows/_partials/calendar-acquire.google_calendar.md +18 -11
- package/agent-assets/task-flows/_partials/calendar-acquire.outlook_calendar.md +16 -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 +17 -9
- package/agent-assets/task-flows/_partials/notion-acquire.notion.md +18 -12
- package/agent-assets/task-flows/knowledge.import.md +1 -1
- package/agent-assets/task-flows/message.received.dm.md +13 -15
- package/agent-assets/task-flows/message.received.dm_first.md +10 -14
- package/agent-assets/task-flows/routine.custom.md +3 -1
- package/agent-assets/task-flows/routine.evening_review.md +39 -163
- package/agent-assets/task-flows/routine.fetch_window.md +17 -12
- package/agent-assets/task-flows/routine.hourly_check.md +16 -8
- package/agent-assets/task-flows/routine.hourly_check.triage.md +1 -1
- package/agent-assets/task-flows/routine.monthly_review.md +46 -4
- package/agent-assets/task-flows/routine.morning_routine_journal.md +113 -0
- package/agent-assets/task-flows/routine.morning_routine_today.md +673 -0
- package/agent-assets/task-flows/routine.roadmap_refresh.md +60 -15
- package/agent-assets/task-flows/routine.user_profile_sweep.md +9 -10
- package/agent-assets/task-flows/routine.weekly_review.md +285 -70
- package/agent-assets/task-flows/scheduled.dm.md +8 -8
- package/agent-assets/task-flows/scheduled.task.md +5 -5
- package/agent-assets/task-flows/setup.initial.md +165 -245
- package/agent-assets/task-flows/wiki.ingest_url.md +1 -1
- package/agent-assets/templates/_manifest.json +7 -7
- package/agent-assets/templates/dossiers/_index.md +1 -1
- package/agent-assets/templates/rules/journal-format.md +145 -38
- package/agent-assets/templates/user/expertise.md +4 -2
- package/agent-assets/templates/user/goals.md +4 -2
- package/agent-assets/templates/user/people.md +8 -2
- package/agent-assets/templates/user/personal.md +4 -2
- package/agent-assets/templates/user/work.md +4 -2
- package/bin/aitne.mjs +8 -1
- package/package.json +4 -4
- package/scripts/commands/doctor.mjs +52 -0
- package/scripts/commands/run-now.mjs +202 -0
- package/scripts/commands/verify.mjs +264 -0
- 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
|
@@ -3,6 +3,11 @@ schema_version: 1
|
|
|
3
3
|
slug: troubleshooting/dashboard-shows-degraded
|
|
4
4
|
title: Dashboard Shows Degraded
|
|
5
5
|
id: dashboard-shows-degraded
|
|
6
|
+
aliases:
|
|
7
|
+
- dashboard degraded
|
|
8
|
+
- degraded pill
|
|
9
|
+
- health pill red
|
|
10
|
+
- health degraded
|
|
6
11
|
category: troubleshooting
|
|
7
12
|
summary: |
|
|
8
13
|
The DegradedBanner appears at the top of every page when the daemon
|
|
@@ -12,6 +17,7 @@ section: dashboard-shows-degraded
|
|
|
12
17
|
tags:
|
|
13
18
|
- troubleshooting
|
|
14
19
|
- operations
|
|
20
|
+
- health
|
|
15
21
|
status: stable
|
|
16
22
|
ask_examples:
|
|
17
23
|
- Why is the dashboard showing a degraded banner?
|
|
@@ -19,6 +25,12 @@ ask_examples:
|
|
|
19
25
|
locale: en-US
|
|
20
26
|
created: 2026-04-25
|
|
21
27
|
updated: 2026-04-25
|
|
28
|
+
keywords:
|
|
29
|
+
- degraded
|
|
30
|
+
- health pill
|
|
31
|
+
- /health
|
|
32
|
+
- auth health
|
|
33
|
+
- indexer degraded
|
|
22
34
|
related:
|
|
23
35
|
- troubleshooting/auth-failed
|
|
24
36
|
- features/memory-files/today
|
|
@@ -41,7 +53,7 @@ related:
|
|
|
41
53
|
|
|
42
54
|
## Diagnostic Steps
|
|
43
55
|
|
|
44
|
-
1. `
|
|
56
|
+
1. `aitne logs` — search for the most recent error.
|
|
45
57
|
2. Confirm `df -h` shows free space on the data directory.
|
|
46
58
|
3. Check for a stale lock file in `~/.personal-agent/`.
|
|
47
59
|
|
|
@@ -3,6 +3,10 @@ schema_version: 1
|
|
|
3
3
|
slug: troubleshooting/fallback-keeps-firing
|
|
4
4
|
title: Fallback Keeps Firing
|
|
5
5
|
id: fallback-keeps-firing
|
|
6
|
+
aliases:
|
|
7
|
+
- fallback firing
|
|
8
|
+
- backend fallback
|
|
9
|
+
- main backend down
|
|
6
10
|
category: troubleshooting
|
|
7
11
|
summary: |
|
|
8
12
|
The router transitioned main → fallback for several runs in a row.
|
|
@@ -11,6 +15,7 @@ section: fallback-keeps-firing
|
|
|
11
15
|
tags:
|
|
12
16
|
- troubleshooting
|
|
13
17
|
- backends
|
|
18
|
+
- routing
|
|
14
19
|
status: stable
|
|
15
20
|
ask_examples:
|
|
16
21
|
- Why does the fallback keep running?
|
|
@@ -18,6 +23,11 @@ ask_examples:
|
|
|
18
23
|
locale: en-US
|
|
19
24
|
created: 2026-04-25
|
|
20
25
|
updated: 2026-04-25
|
|
26
|
+
keywords:
|
|
27
|
+
- fallback
|
|
28
|
+
- BackendQuotaError
|
|
29
|
+
- BackendDecisiveFailure
|
|
30
|
+
- router fallover
|
|
21
31
|
related:
|
|
22
32
|
- troubleshooting/auth-failed
|
|
23
33
|
- troubleshooting/quota-exhausted
|
|
@@ -3,6 +3,10 @@ schema_version: 1
|
|
|
3
3
|
slug: troubleshooting/messaging-not-pairing
|
|
4
4
|
title: Messaging Not Pairing
|
|
5
5
|
id: messaging-not-pairing
|
|
6
|
+
aliases:
|
|
7
|
+
- pairing failed
|
|
8
|
+
- magic phrase not working
|
|
9
|
+
- messaging not paired
|
|
6
10
|
category: troubleshooting
|
|
7
11
|
summary: |
|
|
8
12
|
The magic phrase isn't pairing your messaging account. Usually the
|
|
@@ -12,6 +16,7 @@ section: messaging-not-pairing
|
|
|
12
16
|
tags:
|
|
13
17
|
- troubleshooting
|
|
14
18
|
- messaging
|
|
19
|
+
- pairing
|
|
15
20
|
status: stable
|
|
16
21
|
ask_examples:
|
|
17
22
|
- Why isn't my magic phrase pairing?
|
|
@@ -19,6 +24,12 @@ ask_examples:
|
|
|
19
24
|
locale: en-US
|
|
20
25
|
created: 2026-04-25
|
|
21
26
|
updated: 2026-04-25
|
|
27
|
+
keywords:
|
|
28
|
+
- magic phrase
|
|
29
|
+
- owner channel
|
|
30
|
+
- pairing
|
|
31
|
+
- bot token
|
|
32
|
+
- OAuth
|
|
22
33
|
related:
|
|
23
34
|
- features/messaging/pairing-and-magic-phrase
|
|
24
35
|
- features/messaging/overview
|
|
@@ -15,7 +15,8 @@ summary: |
|
|
|
15
15
|
section: morning-routine-didnt-run
|
|
16
16
|
tags:
|
|
17
17
|
- troubleshooting
|
|
18
|
-
-
|
|
18
|
+
- routines
|
|
19
|
+
- autonomous
|
|
19
20
|
status: stable
|
|
20
21
|
ask_examples:
|
|
21
22
|
- Why didn't my morning routine fire?
|
|
@@ -23,6 +24,10 @@ ask_examples:
|
|
|
23
24
|
locale: en-US
|
|
24
25
|
created: 2026-04-25
|
|
25
26
|
updated: 2026-04-25
|
|
27
|
+
keywords:
|
|
28
|
+
- morning routine didn't run
|
|
29
|
+
- morning routine skipped
|
|
30
|
+
- morning routine gate
|
|
26
31
|
related:
|
|
27
32
|
- features/routines/morning-routine
|
|
28
33
|
- troubleshooting/auth-failed
|
|
@@ -39,7 +44,7 @@ related:
|
|
|
39
44
|
|
|
40
45
|
## Most Likely Causes (in probability order)
|
|
41
46
|
|
|
42
|
-
1. **Daemon was stopped at the trigger time.** Check `
|
|
47
|
+
1. **Daemon was stopped at the trigger time.** Check `aitne status`.
|
|
43
48
|
2. **Fallback failed too.** Look for a `fallback-failed` notification.
|
|
44
49
|
3. **Heavy-tier quota exhausted on both backends.** See
|
|
45
50
|
[Quota Exhausted](quota-exhausted.md).
|
|
@@ -53,11 +58,11 @@ related:
|
|
|
53
58
|
|
|
54
59
|
## Diagnostic Steps
|
|
55
60
|
|
|
56
|
-
1. `
|
|
61
|
+
1. `aitne status` — daemon up?
|
|
57
62
|
2. `/activity` — any row for `routine.morning_routine`?
|
|
58
63
|
3. `/settings/routines` — the routine list shows the next scheduled
|
|
59
64
|
fire and recent runs.
|
|
60
|
-
4. `
|
|
65
|
+
4. `aitne logs` — search for `morning_routine`.
|
|
61
66
|
|
|
62
67
|
## Confirming the Fix
|
|
63
68
|
|
|
@@ -3,6 +3,11 @@ schema_version: 1
|
|
|
3
3
|
slug: troubleshooting/observation-not-detected
|
|
4
4
|
title: Observation Not Detected
|
|
5
5
|
id: observation-not-detected
|
|
6
|
+
aliases:
|
|
7
|
+
- observation missing
|
|
8
|
+
- no observations
|
|
9
|
+
- polling broken
|
|
10
|
+
- hourly check empty
|
|
6
11
|
category: troubleshooting
|
|
7
12
|
summary: |
|
|
8
13
|
An expected change (commit, note, calendar move) didn't surface in
|
|
@@ -12,6 +17,7 @@ section: observation-not-detected
|
|
|
12
17
|
tags:
|
|
13
18
|
- troubleshooting
|
|
14
19
|
- observations
|
|
20
|
+
- polling
|
|
15
21
|
status: stable
|
|
16
22
|
ask_examples:
|
|
17
23
|
- Why didn't the agent notice my new commit?
|
|
@@ -19,6 +25,12 @@ ask_examples:
|
|
|
19
25
|
locale: en-US
|
|
20
26
|
created: 2026-04-25
|
|
21
27
|
updated: 2026-04-25
|
|
28
|
+
keywords:
|
|
29
|
+
- observation
|
|
30
|
+
- polling
|
|
31
|
+
- observer
|
|
32
|
+
- AgentWriteTracker
|
|
33
|
+
- hourly check
|
|
22
34
|
related:
|
|
23
35
|
- concepts/observations
|
|
24
36
|
- features/integrations/git
|
|
@@ -24,10 +24,16 @@ ask_examples:
|
|
|
24
24
|
locale: en-US
|
|
25
25
|
created: 2026-04-25
|
|
26
26
|
updated: 2026-05-04
|
|
27
|
+
keywords:
|
|
28
|
+
- quota
|
|
29
|
+
- BackendQuotaError
|
|
30
|
+
- rate limit
|
|
31
|
+
- fallback fired
|
|
32
|
+
- 5h window
|
|
27
33
|
related:
|
|
28
34
|
- concepts/costs-and-quotas
|
|
29
35
|
- concepts/auth-health
|
|
30
|
-
- guides/
|
|
36
|
+
- guides/switch-default-backend
|
|
31
37
|
---
|
|
32
38
|
|
|
33
39
|
# Quota Exhausted
|
|
@@ -26,6 +26,11 @@ ask_examples:
|
|
|
26
26
|
locale: en-US
|
|
27
27
|
created: 2026-05-12
|
|
28
28
|
updated: 2026-05-12
|
|
29
|
+
keywords:
|
|
30
|
+
- wiki ingest blocked
|
|
31
|
+
- ingest cost gate
|
|
32
|
+
- ingest approval
|
|
33
|
+
- full rebuild blocked
|
|
29
34
|
related:
|
|
30
35
|
- features/wiki/commands
|
|
31
36
|
- guides/budget-and-cost-for-wiki
|
|
@@ -25,6 +25,11 @@ ask_examples:
|
|
|
25
25
|
locale: en-US
|
|
26
26
|
created: 2026-05-12
|
|
27
27
|
updated: 2026-05-12
|
|
28
|
+
keywords:
|
|
29
|
+
- wiki write failed
|
|
30
|
+
- wiki API failure
|
|
31
|
+
- wiki write lock
|
|
32
|
+
- external vault write
|
|
28
33
|
related:
|
|
29
34
|
- features/wiki/overview
|
|
30
35
|
- guides/use-an-existing-obsidian-vault
|
|
@@ -16,7 +16,7 @@ Each is one row from `skill_curation_signals`:
|
|
|
16
16
|
"skill_slug": "user-profile",
|
|
17
17
|
"section_id": "topic-files",
|
|
18
18
|
"signal_type": "structure_diff",
|
|
19
|
-
"payload": { "sub_kind": "heading_add", "target": "user/personal.md
|
|
19
|
+
"payload": { "sub_kind": "heading_add", "target": "user/personal.md#health-log" },
|
|
20
20
|
"observed_at": 1717000000000
|
|
21
21
|
}
|
|
22
22
|
```
|
|
@@ -37,7 +37,7 @@ Body:
|
|
|
37
37
|
"skill_slug": "user-profile",
|
|
38
38
|
"section_id": "topic-files",
|
|
39
39
|
"payload": { "kind": "knowledge_layout", "files": [...] },
|
|
40
|
-
"rationale": "structure_diff observed `##
|
|
40
|
+
"rationale": "structure_diff observed `## Health Log` heading on user/personal.md last week",
|
|
41
41
|
"signal_ids": [42, 47]
|
|
42
42
|
}
|
|
43
43
|
```
|
|
@@ -65,7 +65,7 @@ Free-text fields (`convention_notes.rule`, `routing_table.note`,
|
|
|
65
65
|
action. Examples:
|
|
66
66
|
|
|
67
67
|
- ❌ "When the user mentions a doctor visit, write to user/personal.md"
|
|
68
|
-
- ✅ "Doctor visits are recorded under `user/personal.md ##
|
|
68
|
+
- ✅ "Doctor visits are recorded under `user/personal.md ## Health Log`"
|
|
69
69
|
- ❌ "Always include the date with the entry"
|
|
70
70
|
- ✅ "Entries carry a `[YYYY-MM-DD]` prefix"
|
|
71
71
|
- ❌ "Never use spaces in slugs"
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-actions
|
|
3
|
+
description: Load when the running session needs to write structured metadata into its own `agent_actions` row so daemon-side consumers (morning-routine AgentJournalAppender, anomaly surfacing, audit log) read structured data instead of parsing prose.
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Bash(curl *)
|
|
6
|
+
- Read
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Agent self-reporting structured metadata
|
|
10
|
+
|
|
11
|
+
The running session can patch structured metadata into the `agent_actions`
|
|
12
|
+
row that records its own run. The daemon's morning-routine pipeline
|
|
13
|
+
consumes that metadata to assemble `agent/journal.md` without parsing
|
|
14
|
+
your final-text output — see `docs/design/appendices/morning-routine-
|
|
15
|
+
optimization.md` §"Data-flow principle: prose vs structured".
|
|
16
|
+
|
|
17
|
+
## When to call this
|
|
18
|
+
|
|
19
|
+
Call exactly once near the end of your turn, after you have produced
|
|
20
|
+
every other output. The endpoint is shallow-merge so repeated PATCHes
|
|
21
|
+
within the same session accumulate — but the morning-routine task-flow
|
|
22
|
+
expects a single consolidated call so the audit row reads cleanly.
|
|
23
|
+
|
|
24
|
+
## Authentication
|
|
25
|
+
|
|
26
|
+
<a id="self-write-auth"></a>
|
|
27
|
+
|
|
28
|
+
The endpoint resolves your `agent_actions` row from two headers that
|
|
29
|
+
the daemon's pa-api / curl shim auto-attaches inside a
|
|
30
|
+
dispatcher-spawned session:
|
|
31
|
+
|
|
32
|
+
- `x-pa-event-correlation-id` (from `PA_EVENT_CORRELATION_ID`) —
|
|
33
|
+
matches `agent_actions.event_id`.
|
|
34
|
+
- `x-process-key` (from `PA_PROCESS_KEY`) — matches
|
|
35
|
+
`agent_actions.action_type`.
|
|
36
|
+
|
|
37
|
+
When you call this from skill prose using `curl`, the shim handles
|
|
38
|
+
header attachment for you — you do not type them. The endpoint returns
|
|
39
|
+
`agent_actions.session_identity_missing` if either header is absent
|
|
40
|
+
(the session is misconfigured) and `agent_actions.session_row_not_found`
|
|
41
|
+
if no in-flight row matches your session — typically because the row
|
|
42
|
+
has already settled to a terminal `result`, or because the dispatcher
|
|
43
|
+
spawned the session without the pre-insert step that the morning
|
|
44
|
+
routine's pipeline orchestrator owns. Surface as anomaly and continue.
|
|
45
|
+
|
|
46
|
+
## Metadata shape
|
|
47
|
+
|
|
48
|
+
<a id="metadata-shape"></a>
|
|
49
|
+
|
|
50
|
+
The morning-routine Stage A is the primary caller. Its expected shape:
|
|
51
|
+
|
|
52
|
+
| Field | Type | Purpose |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| `dayType` | `"weekday" \| "weekend" \| "focus" \| "off"` | The day-type Stage A derived. ⑥ AgentJournalAppender writes this into agent/journal.md's header line. |
|
|
55
|
+
| `anomalies` | `string[]` | Free-form anomalies you encountered (e.g. "AgentPlan cardinality mismatch: today.md has 6 rows, batch had 5"). ⑥ surfaces these in agent/journal.md and `pnpm audit` filters on them. |
|
|
56
|
+
| `filesTouched` | `string[]` | Paths your turn wrote to (e.g. `context/today.md`, `context/roadmap.md`). |
|
|
57
|
+
| `inboxStats` | `{triaged, movedToScratch, dmConfirmsSent, secretsSkipped}` | Inbox triage counts from Step 4. All keys integers >= 0. `secretsSkipped` is collected but NOT rendered by ⑥; surface secret-skip events through `anomalies` as well so they reach the audit trail. |
|
|
58
|
+
| `morningChecks` | `string[]` | Short labels for every Step 8 `routines/morning.md` extension check executed (e.g. `"water bottle filled"`). ⑥ joins these with `, ` into the `Checks from routines/morning.md:` bullet. Empty array → renders as `(none)`. |
|
|
59
|
+
| `scheduleBatchSize` | `number` | Cardinality you observed when posting to `/api/schedule/batch`. Mirrors what was POSTed so ⑥ can detect cardinality mismatches against today.md. |
|
|
60
|
+
|
|
61
|
+
The endpoint accepts any well-formed JSON object — these are the keys
|
|
62
|
+
the morning-routine pipeline consumes. Skills can extend the shape
|
|
63
|
+
informally; the daemon does not constrain field set.
|
|
64
|
+
|
|
65
|
+
## Call shape
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
curl -s -X PATCH http://localhost:8321/api/agent-actions/self \
|
|
69
|
+
-H 'Content-Type: application/json' \
|
|
70
|
+
-d '{
|
|
71
|
+
"metadata": {
|
|
72
|
+
"dayType": "weekday",
|
|
73
|
+
"anomalies": [],
|
|
74
|
+
"filesTouched": ["context/today.md", "context/roadmap.md"],
|
|
75
|
+
"inboxStats": { "triaged": 4, "movedToScratch": 4, "dmConfirmsSent": 1, "secretsSkipped": 0 },
|
|
76
|
+
"morningChecks": ["water bottle filled", "calendar synced"],
|
|
77
|
+
"scheduleBatchSize": 5
|
|
78
|
+
}
|
|
79
|
+
}'
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Success (200):
|
|
83
|
+
```json
|
|
84
|
+
{ "ok": true, "id": 1234, "metadata": { ...merged result... } }
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Errors
|
|
88
|
+
|
|
89
|
+
Every error response uses the **agent-consumable envelope**:
|
|
90
|
+
|
|
91
|
+
```jsonc
|
|
92
|
+
{
|
|
93
|
+
"ok": false,
|
|
94
|
+
"summary": "Request rejected: agent_actions.session_identity_missing on headers.x-pa-event-correlation-id.",
|
|
95
|
+
"errors": [
|
|
96
|
+
{
|
|
97
|
+
"rowIndex": null,
|
|
98
|
+
"code": "agent_actions.session_identity_missing",
|
|
99
|
+
"field": "headers.x-pa-event-correlation-id",
|
|
100
|
+
"received": "<missing>",
|
|
101
|
+
"expected": "x-pa-event-correlation-id and x-process-key headers identifying the running session",
|
|
102
|
+
"hint": "The pa-api shim auto-injects these from PA_EVENT_CORRELATION_ID and PA_PROCESS_KEY when running inside a dispatcher-spawned session.",
|
|
103
|
+
"skillAnchor": "agent-actions#self-write-auth",
|
|
104
|
+
"severity": "error"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"retryable": false
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Codes the endpoint can emit
|
|
112
|
+
|
|
113
|
+
| Code | When | Fix |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| `agent_actions.session_identity_missing` | `x-pa-event-correlation-id` or `x-process-key` header is absent / empty. | Running inside a dispatcher-spawned session the pa-api shim attaches both headers from env. If you see this, the session is misconfigured — surface it as an anomaly via `<safety_violation>` and stop. Not retryable in the same turn. |
|
|
116
|
+
| `agent_actions.session_row_not_found` | No in-flight `agent_actions` row matches `(event_id, action_type)`. | Either the row has already settled to a terminal result (success/failed/partial) and your PATCH arrived late, or the dispatcher spawned this session without the orchestrator-side pre-insert that the morning-routine pipeline relies on. Either way, the PATCH cannot land — surface as anomaly and continue. Not retryable. |
|
|
117
|
+
| `agent_actions.body_not_object` | Request body is not a JSON object. | POST `{"metadata":{…}}`. |
|
|
118
|
+
| `agent_actions.metadata_field_invalid` | `metadata` slot is missing, not an object, an array, or carries non-JSON-serialisable values (functions, Symbols, BigInts). | Pass a plain JSON object literal. Arrays go inside named keys (e.g. `anomalies:[…]`). |
|
|
119
|
+
|
|
120
|
+
`retryable:false` means the agent should NOT retry the same call; it
|
|
121
|
+
should surface the failure as a structured anomaly (via this endpoint's
|
|
122
|
+
`anomalies` field when accessible) or DM the operator.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: attach
|
|
3
3
|
description: Load when the reply should embed a file (generated md/PDF/CSV, chart image, modified upload) — `Write` to disk alone is not delivery.
|
|
4
|
-
when_to_use: The only channel that delivers a file alongside chat. Skip if the user only needs the path mentioned, not the bytes attached.
|
|
5
4
|
allowed-tools:
|
|
6
5
|
- Bash(curl *)
|
|
7
6
|
- Write
|
|
@@ -85,7 +84,7 @@ Per-turn total across all attachments is capped at **100 MB**; the endpoint retu
|
|
|
85
84
|
## Workflow
|
|
86
85
|
|
|
87
86
|
1. Decide the filename and caption up front (literal strings — no shell interpolation).
|
|
88
|
-
2. Generate the content and write it with the `Write` tool. Use `/tmp/<name>` as the path
|
|
87
|
+
2. Generate the content and write it with the `Write` tool. Use `/tmp/<name>` as the path only — every other path (`~/`, session workdir, context dir, `/var/`, `/Users/...`) is denied by the absolute-block layer (`packages/daemon/src/safety/always-disallowed.ts`). Never write into the session workdir or the context dir.
|
|
89
88
|
3. Issue the single curl POST shown above. One file per call.
|
|
90
89
|
4. Branch on the response:
|
|
91
90
|
- Success (`{"id": "..."}`) — mention the attachment in your reply, e.g. `"Attached: weekly-summary.md"`. You may discard the id; the daemon links it to your message automatically.
|